Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how do i stop a player from moving?

this isnt a request, i just wanna know the properties which needs to get tcked off

1 comment

1

Set Walkspeed to 0, set JumpPower to 0, and set AutoRotate to false.

2 answers

✓ Accepted answer

You would do it like this:

game.Players.Player1.Character.Humanoid.WalkSpeed = 0
game.Players. Player1.Character. Humanoid.JumpPower = 0

game.Players. Player1.Character. Humanoid.AutoRotate
= false

From this code, the properties you are looking for are WalkSpeed, AutoRotate, and JumpPower.

I would disable the players ControlScript.


local Players = game:getService("Players")
local Player = Players.LocalPlayer
local PlayerScripts = Player:WaitForChild("PlayerScripts")
local ControlScript = PlayerScripts:WaitForChild("ControlScript")
ControlScript.Disabled = true
--If you want to turn it off, just do
ControlScript.Disabled = false

This discussion is preserved as it was. New answers, comments, and votes are closed.