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

[solved] Why does this code not disable the mobile controls?

Asked by 3 years ago
Edited 3 years ago

So, I've tested the following code on my iPad:

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

For some reason this does not work, (yes it is a local script in startergui) I got this information from the Roblox Developer Forum (apparently true removes it? i've tested both.). Why does this happen? All help is appreciated?

2
try hiding touchGui then BestCreativeBoy 1395 — 3y
0
then? WideSteal321 773 — 3y
2
Its kind of just game.Players.LocalPlayer:WaitForChild("PlayerGui").TouchGui.Visible = false BestCreativeBoy 1395 — 3y
0
destroying it worked! WideSteal321 773 — 3y
2
First time solving an issue in comments BestCreativeBoy 1395 — 3y

Answer this question