Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I remove touch controls from mobile devices?

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

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.