Any way to make gui buttons/ContextActionService buttons fire UserInputService events?

I am creating a fighting game with different sets of movesets. I am planning to add mobile support for more accessibility. For mobile controls, I normally have a gui of buttons that only appears on-screen if you are a mobile player, since I’m not a big fan of the ContextActionService. Moves in my game are typically fired by pressing a specifc key like E,G,C,T, etc. Is there any easy way I can port these controls to a button without having to repaste the input code for the move manually?

2 Likes

If there’s anyway ContextActionService can do what I’m currently desiring then I’ll happily use that instead. But for now I have no clue.