Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
-1

Walkspeed Script HELP?

Asked by 6 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 — 6y

1 answer

Log in to vote
-1
Answered by 6 years ago

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

0
D; TochiWasHere 10 — 6y
Ad

Answer this question