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.

3 Likes

You can use a ContextActionService. Mobile Input | Documentation - Roblox Creator Hub

I hope this article helps!

6 Likes

Thank you! It worked perfectly.