How to stop xbox player movement?

How would I stop a xbox player from moving. I want to add controller support to my game but in order to do that I need to use this to stop them from moving and use humanoid:MoveTo

You can check out this: How to Disable Player Movement - #2 by H_mzah

1 Like

To fully stop them from moving you can use:

local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Disable()

and then implement the Humanoid | Roblox Creator Documentation!

First, the function humanoid:MoveTo will always work, because this is not OS depended.
Also please note that you could find this easy on Roblox Creator Documentation
The solution is probably;

local controls = require(game:GetService(“Players”).LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Disable()

since this is on the whole control, not only on one OS depended feature.