game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local humanoid = char:WaitForChild("Humanoid")
humanoid.WalkSpeed = 0
end)
end)
How does something as simple as this not work??? Am I missing something

6 comments
What's the error?
what's not working? you're still able to move?
Add a wait(3) or wait(2) after “player.CharacterAdded:Connect(function()” for the character to load in. This isn’t the most efficient.
You could try to use “CharacterAdded:Wait()”
There's no error. Yh I tried wait(3), that doesn't work. Neither does CharacterAdded:Wait(). I don't get why it's not working?
Where have you put the script, I highly recommend putting scripts like these inside either Workspace or ServerScriptService since scripts won't work if you put them in wrong places.