How do I make a mobile button equal a keyboard input?

Hi, I’m new to scripting and I’m trying to make a mobile button so other users can play my game. My game includes a dialogue system, which requires the player to press F on their keyboard in order to speak to NPCs. I’ve made the button, but I don’t know how to program the bind. If possible, can someone tell me what to do? Thanks in advance.


You can use a ContextActionService.

I hope this article helps!


Thank you! It worked perfectly.