Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I remove touch controls from mobile devices?

Asked by 7 years ago

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!

1 answer

Log in to vote
2
Answered by
Vexture 179
7 years ago

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
Ad

Answer this question