game:GetService("RunService").RenderStepped:Connect(function()
if not UserInputService.TouchEnabled and UserInputService.KeyboardEnabled then
MainUI.Parent.Parent.Enabled = true
else
MainUI.Parent.Parent.Enabled = false
end
end)
why does this not always work? im trying to hide the gui on mobile but it doesnt work most of the time


** You are now Level 3! **