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