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.

1 comment

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.