Is there any way to test what device a player is on? (like: Console, PC and mobile) (but mainly test for mobile)
Im creating a game and you need to buy things in a shop. You also have currency. I display the currency on GUI's.
When i check the roblox device emulator to see if the GUI's positions are good i see that on mobile the currency 'meeters' are at wrong positions.
So i need a way to check for mobile so the scripts can position the GUI's correctly for mobile (but not for PC or console) Is there any way to achieve this effect?
Simply access UIS (UserInputService) and see if Touch is enabled. This is typically the best way to tell.
IsMobile = game:GetService("UserInputService").TouchEnabled if IsMobile then --Etc. end