How To Make Gui Only Visible To Mobile & Tablet?

  1. What do you want to achieve? I want to learn how I can make a Gui only visible to mobile and tablet users…

  2. What is the issue? I don’t know how to do this…

  3. What solutions have you tried so far? I have looked everywhere but I couldn’t find a solution…

Any help would be appreciated…

3 Likes
local UI = script.Parent

if (game:GetService("UserInputService").TouchEnabled == true) and (game:GetService("UserInputService").MouseEnabled == false) then 
	UI.Visible = true 
else 
	UI.Visible = false
end
11 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.