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

Is there a script that toggles scripts to work pc vs xbox?

Asked by 6 years ago

I made a GUI that is both Xbox and PC compatible. When you play on the Xbox, Xbox buttons manage the GUI and when you are PC "MouseButton1Click" manages the GUI.

Is there a script where the game can detect if you are on PC or Xbox and make certain scripts work if you are PC or Xbox?

1 answer

Log in to vote
0
Answered by
gitrog 326 Moderation Voter
6 years ago
Edited 6 years ago

You can get the platform and then run the script using an If Then. Here's some more information on how you would do that http://wiki.roblox.com/index.php?title=API:Enum/Platform

Ad

Answer this question