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

Removing a player's control?

Asked by
ItsMeKlc 235 Moderation Voter
8 years ago

First off, yes, I am aware of this article: http://wiki.roblox.com/index.php?title=Controlling_a_Player%27s_Character My problem with it is that it doesn't tell you how to force the player to stop, it just tells you how to wait until the player has stopped moving and I need to fore the player to stop

0
Just make their WalkSpeed 0 and their JumpPower 0 (Don't forget to change them back to 16 and 50) Decemus 141 — 8y
0
In my game the player has cosmetics that can constantly change his jumppower/walkspeed so that wont work ItsMeKlc 235 — 8y

2 answers

Log in to vote
-1
Answered by
P100D 590 Moderation Voter
8 years ago
player.Character.Walkspeed = 0
player.Character.JumpPower = 0

To return control to the player:

player.Character.Walkspeed = 16
player.Character.JumpPower = 50
0
In my game the player has cosmetics that can constantly change his jumppower/walkspeed so that wont work ItsMeKlc 235 — 8y
0
Maybe you should've specified beforehand? Instead of downvoting, you could've just edited the response I provided and used an IntValue of the JumpPower and WalkSpeed to keep track of what to return the player's stats to. P100D 590 — 8y
Ad
Log in to vote
-1
Answered by
Malenz 0
8 years ago

Or you could anchor the Players Torso.

0
Wont work, I need the player's body to be able to move ItsMeKlc 235 — 8y
0
So you want to move the players body without the player being able to control it? Malenz 0 — 8y

Answer this question