I'm currently developing a game that requires no character movement whatsoever, and I'm currently trying to figure out how to remove the character movement buttons on mobile devices. However, I can't seem to find a way how. Does anyone know how to? Thanks!
After some research on the wiki, I found this:
The service UserInputService
has a property called ModalEnabled
. When set to false
(default property setting), the GUI on mobile devices is enabled; however, if you set that property to true
, the buttons on touch devices are disabled.
Visualization in code:
local UserInputService = game:GetService("UserInputService") UserInputService.ModalEnabled = false