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

How to make a Gui button activate a keyboard bind?

Asked by 3 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

For my game, in order to make it more mobile accessible, (and also for Xbox and pc), I want to make a Gui button that will activate a bind.

For example, originally you would press C while in a car to change the camera angle, but for some people that isn't as accessible, so you would have a GUI button that would press C for you.

How can I do this? I've tried using ContextActionService in my scripts but it doesn't seem to work.

0
I would check if the player is a mobile player (learn that with userinput) and then if so make a button but if the player is a pc player then add a keybind. wolftamer894 50 — 3y

Answer this question