- What do you want to achieve? Keep it simple and clear!
I want to make it so the player can’t move while in the menu, but can after hitting play.
- What is the issue? Include screenshots / videos if possible!
When the player hits play, their character loads in, but it can’t move. The player CAN move only if you use the mobile device view and move with your keyboard.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I checked all over the developer hub, no one seems to have the same problem. I tried checking if the model was anchored, I checked the camera, and I made sure the controls module was enabled.
I am using this code to enable/disable the movement:
local PlayerModule = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"))
local controls = PlayerModule:GetControls()
controls:Enable(false)
controls:Enable(true)