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

How to stop a players control over their movement?

Asked by 4 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

I have been looking for so long but can’t find a reliable working answer. I want to use the MoveTo function in an individuals humanoid to move them however I can’t do this without disabling their controls first.

How would I do this? I just want to remove the controls of one single player for a brief amount of time before allowing them control again.

2 answers

Log in to vote
1
Answered by 4 years ago

Hi dinor,

With the new players control lay out, you need to use the ModuleScript that has been made to stop it. They made a function to stop it, find out more about how to do it here. That's the best source i could find on the topic.

Thanks,

Best regards,

Idealist Developer

Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

To stop the movement of things including walking and jumping then do this: Insert a Script into game.StarterPlayer.StarterCharacterScripts:

script.Parent:WaitForChild("HumanoidRootPart").Anchored == true

And to stop emotes, put this LocalScript in StarterGui:

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu,false)

Happy to help, b_mni

Answer this question