How do I make sure default mobile UI is completely disabled?

My game has custom mobile Gui and the default touch gui is disabled.

The default touchgui is disabled with this code:

local TouchGui = player:WaitForChild("PlayerGui"):FindFirstChild("TouchGui")
if TouchGui then TouchGui.Enabled = false end

This mostly works but sometimes the default touchgui appears anyway and gets in the way. Sometimes the default touchgui jump button appears and sometimes the default thumbstick appears or acts like it’s still taking input even though it’s disabled.



(Here you can see the default thumbstick appearing under my custom thumbstick. I can make this happen by using my keyboard while testing with Mobile in Studio but sometimes it also happens at random in game)

This is seemingly random and I’m not sure why this is happening. There are no error messages. How do I completely disable the default touchgui from ever appearing or affecting anything?

1 Like

Set ModalEnabled to true.
UserInputService.ModalEnabled (roblox.com)