Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I locate if a player is playing on the mobile app?

How can I locate if a player is playing through the mobile app because I want ti load 2 diffrent gyis to fit the screens of the user either a mobile or PC and hiw would that happen? First I need to know how to locate what the device the player is using then how to load either one or the other guis.

2 answers

✓ Accepted answer

If I were you, don't use a GUI to ask. Simply use UserInputService.

if game:GetService("UserInputService").TouchEnabled == true then
	--do mobile stuff here
end

Give them a gui that askes them. Are you on iOS or Computor? If they click one, give them the correct guis.

2 comments

0

iOS

0

What about it?

This discussion is preserved as it was. New answers, comments, and votes are closed.