RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a dance chat command that plays a dance emote"
-- server script (ServerScriptService) local function onPlayerChatted(player, message) if message:lower() == "!dance" then local character = player.Character local humanoid = character and character:FindFirstChild("Humanoid") if humanoid then humanoid:LoadAnimation(game:GetService("ReplicatedStorage").DanceEmote):Play() end end end local function onPlayerAdded(player) player.Chatted:Connect(function(message) onPlayerChatted(player, message) end) end game.Players.PlayerAdded:Connect(onPlayerAdded) -- Add a dance emote animation in ReplicatedStorage with the name "DanceEmote"