Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Disable character from moving by overriding movement command every frame
- -- Taken from: https://developer.roblox.com/en-us/api-reference/function/Humanoid/Move
- game:GetService("RunService"):BindToRenderStep("stun",
- Enum.RenderPriority.Character.Value + 1,
- function()
- if localPlayer.Character then
- local humanoid = localPlayer.Character:FindFirstChild("Humanoid")
- if humanoid then
- humanoid:Move(Vector3.new(0,0,0))
- end
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment