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.
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.
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thanks, this worked; however, I opted to do touchGui:Destroy()