Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Walkspeed Script HELP?

Asked by 10 years ago

I need help with a script that when a player joins their walkspeed is set to 0 while the clicked.Value = false, here's my current script. Please help.

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        while script.Parent.Clicked.Value==false do
            character.Humanoid.Walkspeed=0
        end
    end)
end)
0
-1, what for? cainsuper3 15 — 10y

1 answer

Log in to vote
-1
Answered by 10 years ago

you might be forgetting the wait() in the while loop

0
D; TochiWasHere 10 — 10y
Ad

Answer this question