Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

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

Asked by 6 years ago

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

Log in to vote
0
Answered by
Avigant 2374 Moderation Voter Community Moderator
6 years ago

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.

0
Thanks! Crazycat4360 115 — 6y
Ad

Answer this question