Hello. I am trying to disable the default mobile controls on my game so I can make custom ones. I need to do that because I want to make the player only be able to move left and right. I am unable to use Modal Enabled. I don’t know if I’m doing something wrong, or if it’s broken right now. I have been trying to find out what I’m doing wrong for a while, and I can’t find anything that works. Here is the script I was using.
wait(0.5)
game:GetService('UserInputService').ModalEnabled = true
(The wait is so the player’s CoreGui can load before it goes off.)
This is a local script. I have tried putting it everywhere I could think of that might work. I tried StarterPack, StarterPlayer.StarterCharacterScripts, and StarterPlayer.StarterPlayerScripts. None of these worked.
Thank you for taking the time to read this!
Have a nice day!