Mobile Keyboard Controls

It may sound wierd but hear me out. How can I implement keyboard and mouse controls on mobile?

For example, by pressing “f” will play an animation (for example) or, by pressing “g” you can open menu (for example).

How do I make GUI that mimic keyboard behaviour so that when I clicked on the gui, it register as if I pressed either “f” or “g” on mobile device? (different GUI buttons by the way) When I clicked the GUI with “f” to register, it plays an animation for me because it register the GUI action as the “f” in keyboard action.

TLDR: How to make a virtual keyboard for mobile device users that when they clicked, it register as desktop keyboard action?

2 Likes

its as simple as making an event that triggers when the button is pressed, and putting the same function for when the key is pressed (or copy and pasting the code) inside that event.

Use ContextActionService. It allows you to do what you are asking for. ContextActionService | Documentation - Roblox Creator Hub

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.