I’m a bit out of date on roblox, I still remember that there used to be a Local Script “ControlScript”
that I used to disabled to make the player lose control of it’s character. But now all I see is the ControlModule which I cant seem to find to disable and it doesn’t list out functions in the script.
The PlayerModule, found in PlayerScripts, has a GetControls function which returns the Controls class - this then has Enable/Disable methods.
Here’s an example of using it:
local LocalPlayer = game:GetService("Players").LocalPlayer
local Controls = require(LocalPlayer.PlayerScripts.PlayerModule):GetControls()
Controls:Disable()
if you mean to how to just change the humanoid settings you can do that by this thing: insert humanoid in starterplayer then change the values and thats all.
It’s on the client, and if it isn’t, it needs to be. So you would need to use WaitForChild as client scripts can run before all game assets are loaded.
Just for future reference, this is a pretty old topic, so please try to avoid bumping topics like these in the future!
Yes sorry for bumping but when you start a new topic you have to make sure a similar one doesn’t exist. And since I have this problem currently, I try to figure why the solutions above don’t work for me.
I’m trying to move the player’s character from a part to another part without being interfered by controls like key inputs. I managed to disable the jump but I don’t know why I can still move when the game is trying to move myself automatically.