Replace HRP with a value that gets the HumanoidRootPart
function Freeze(HRP)
HRP.Velocity = Vector3.new(0,0,0)
print(HRP.Velocity)
end
-- Then you can call this later:
Freeze()
or you can just do:
function Freeze(HRP)
HRP.Anchored = true
wait(0.01)
HRP.Anchored = false
end
-- Then you can call this later:
Freeze()
Only do the second one if the first doesn’t work!
Other Infomation
Both work on Server Scripts! But only the second one will work on Local Scripts!
Make sure the second one if on a local script does not trigger any kind of anti-cheat.