Humanoid.Anchored = true
Im not sure if this is the right code to freeze the player.
To freeze a player, it would be
game.Players.PlayerName.Character.Torso.Anchored = true
Or, you could try changing their WalkSpeed.
game.Players.PlayerName.Character.Humanoid.WalkSpeed = 0