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

How do I make a gui button that could pick load a gui?

Asked by 10 years ago

How can I make a button so that on enter a player can pick mobile or desktop gui because i am going to try this method instead of a load if the player is in the mobile.

0
Just make it so it automatically chooses for the player, not prompt the player. The player may get annoyed by that. If it detects a touch screen, then prompt, because they might have a touch-screen computer. Tkdriverx 514 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

Tkdriverx is right. You'd do this:

if game:GetService("UserInputService").TouchEnabled == true then
--give the prompt, since the person might have a touchscreen computer, and do other stuff
end
Ad

Answer this question