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

Removing a player's control?

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

2 comments

0

Just make their WalkSpeed 0 and their JumpPower 0 (Don't forget to change them back to 16 and 50)

0

In my game the player has cosmetics that can constantly change his jumppower/walkspeed so that wont work

2 answers

player.Character.Walkspeed = 0
player.Character.JumpPower = 0

To return control to the player:

player.Character.Walkspeed = 16
player.Character.JumpPower = 50

2 comments

0

In my game the player has cosmetics that can constantly change his jumppower/walkspeed so that wont work

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.

Or you could anchor the Players Torso.

2 comments

0

Wont work, I need the player's body to be able to move

0

So you want to move the players body without the player being able to control it?

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