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

How do I check what platform someone is playing on (Xbox, PC)?

Hey everyone! I'm currently working on a game that has specific controls for each platform (PC, Xbox, Mobile). How would I go about finding out what each player is playing on? All help appreciated, thanks.

1 answer

✓ Accepted answer

Some of these might hlep you:

http://wiki.roblox.com/index.php?title=API:Class/UserInputService/KeyboardEnabled http://wiki.roblox.com/index.php?title=API:Class/GuiService/IsTenFootInterface http://wiki.roblox.com/index.php?title=API:Class/UserInputService/MouseEnabled

If they are a ten foot interface, it's guaranteed they're on console. You can assume they're on PC if they have a mouse and keyboard. If they are not a ten foot interface but don't have a mouse / keyboard, assume mobile.

You could also perform some screen size checks if you really wanted to.

1 comment

0

Thanks!

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