Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i stop a player from moving?

Asked by
Jumbuu 110
8 years ago

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

1
Set Walkspeed to 0, set JumpPower to 0, and set AutoRotate to false. M39a9am3R 3210 — 8y

2 answers

Log in to vote
2
Answered by 8 years ago

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.

Ad
Log in to vote
1
Answered by 8 years ago

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

Answer this question