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.

1 Like

You can use a ContextActionService. https://developer.roblox.com/en-us/articles/ContextActionService-Creating-Mobile-Buttons

I hope this article helps!

3 Likes

Thank you! It worked perfectly.