RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"When a player says "/e (text of my choice)", then it will play an animation inside the script."
-- server script local function onChatted(player, message) if string.sub(message, 1, 2) == "/e" then local animationId = "rbxassetid://YourAnimationIDHere" local humanoid = player.Character and player.Character:FindFirstChild("Humanoid") if humanoid then humanoid:LoadAnimation(animationId):Play() end end end game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) onChatted(player, message) end) end)