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

How to combine Xbox and PC key functions in one "Script"?

Asked by 6 years ago

I made a Shop GUI for my game and made it where the Xbox keys can open the shop for instance if you press the Y button "ButtonY" the GUI would open. I also made where the PC keys can open the shop for instance if you press key Y "y" the GUI would open. I have 5 local scripts all going to the "MainFrame" (Shop GUI) and 3 local scripts inside the "MainFrame" (Shop) to open the "Code GUI." How can I combine all the open/close scripts in one script/local script to have everything run off one script?

Answer this question