0

# My gui is not enabling on tablet devices, why?

Asked by 10 months ago

I made a script to check if a player is on mobile, pc or tablet. The Pc works fine, so does the mobile, but the tablet does not.

My script:

local UIS = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")

if UIS.TouchEnabled and not UIS.KeyboardEnabled and not UIS.MouseEnabled then
if not GuiService:IsTenFootInterface() then