I'm about to develop a cross platform game. However, I want the interface to be different for Mobile users compared to PC users.

How do you usually identify when someone is playing the game on their smartphone? This will be critical in implementation of the GUIs.

5 comments

1

Game:GetService('UserInputService').TouchEnabled

0

If it's true,then they're on mobile.

0

Thanks

0

Wait, couldn't that also trigger when user has a laptop touchscreen?

0

You might be able to determine the device type by checking for a Gyroscope and Accelerometer. Learn more at: http://wiki.roblox.com/index.php?title=API:Class/UserInputService