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)