Hello Developer Forum,
I’d like to create some little buttons for mobile users that appear on screen. They look like this.

How would I be able to make this pop up? I don’t know what the service or instance is called, could someone at least tell me what this is called? (This is used for mobile users in Adonis admin commands to toggle fly as well)
They used a service called ContextActionService.
A function in ContextActionService called ContextActionService:BindAction is used to create those buttons for mobile users.
Thanks! I’ll look it up on the developer hub! Ty.
Edit: Could you give me an example on how you could make the buttons show up? Would help a lot.
local function press()
–script here
end
game:GetService(“ContextActionService”):BindAction(“runscript”, press, true) --You can add an extra variable but it’s to bind a key on a keyboard so you don’t have to do a separate service. It just saves time.
3 Likes
Finally, someone clarifies it for me! Thanks.
Note that this has to be in a local script and it has to be put in starterplayerscripts in starterplayer
Alrighty, thanks for the help!