Lock Player Movement but not Look

Hi All,

What is the most appropriate function to use for freezing a Player’s movement but not their look. I want the player to still be able to look around, but not be able to move. It doesn’t seem like Freeze or Lock are what I’m looking for.

Cheers
Chromecide

[lua]function FreezePlayers(ply)
ply:SetWalkSpeed(0)
ply:SetRunSpeed(0)
ply:SetJumpPower(0)
end[/lua]

Oh great thanks. Such a simple solution that I couldn’t see staring me in the face!!