RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make all players in the server dance for 10 seconds when connected to the DanceEvent event"
-- server script local DanceEvent = game:GetService("ReplicatedStorage").DanceEvent DanceEvent.OnServerEvent:Connect(function(player) for _, player in pairs(game.Players:GetPlayers()) do local humanoid = player.Character:WaitForChild("Humanoid") humanoid:ChangeState("Dance") wait(10) humanoid:ChangeState("Running") end end)