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

How to stop a players control over their movement?

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

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

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

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