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

How do I remove mobile controls?

I have the following localscript placed in StarterPlayerScripts:

wait(5)
game:GetService("UserInputService").ModalEnabled=true

The wait(5) is to allow for the core scripts to load, yet the mobile controls persist.

https://imgur.com/a/DGecvBr

1 answer

✓ Accepted answer

ModalEnabled doesn't seem to work for me either. If you just want to make the mobile controls invisible, you can toggle the visibility of the TouchControlFrame, like so:

local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local touchGui = playerGui:WaitForChild("TouchGui")
local touchControlFrame = touchGui:WaitForChild("TouchControlFrame")

touchControlFrame.Visible = false

1 comment

0

Thanks, this worked; however, I opted to do touchGui:Destroy()

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