I tried making a freeze script for my game but it won't work. Here's my code.
function onJoined(newPlayer)
newPlayer.Character.Humanoid.WalkSpeed = 0
end
game.Players.PlayerAdded:connect(onJoined)
While making a script and putting it into Studio and testing it. The player still can walk.

2 comments
really? it should do what it is suposed to do nothing is wrong
What exactly are you trying to do? Freeze R6 players or fix the script you have given us? You're giving an XY problem.