How do you detect if the user is on ios or android?

How would I check if a player is on IOS or android? I wonder if this is possible, because I heard there use to be a trick to do so, but was apparently patched?

1 Like

Use UserInputService and check if touch is enabled and keyboard is disabled. UserInputService | Documentation - Roblox Creator Hub

1 Like

i know how to detect mobile, but im specifically trying to detect if the user is on IOS or android. for example:

If UIS.IOSEnabled then
print(“IOS”)
elseif UIS.AndroidEnabled then
print(“Android”)

1 Like

I don’t think that’s possible as of right now. The most you can do is have the player enter whether or not they’re on Android or IOS when they start the game.

1 Like

I know you can check the size of the current screen … not sure if there is a difference here but maybe.