Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Creating a mobile button?

Hi guys!

I saw recently that you can create a mobile button using the ContextActionService and then binding it!

Could anyone give me any ideas on how to actually make the button though? This is about all I knew about the mobile buttons lol....

game:GetService("ContextActionService"):BindAction()

I've never really done mobile stuff before :D

Thanks!

1 answer

If you read the parameters associated with the :BindAction() function, you will find that it is structured like so:

void ContextActionService:BindAction(

string actionName,

void function(string, userInputState, InputObject) functionToBind,

bool createTouchButton,

Variant<string, KeyCode, UserInputType, PlayerActions> inputTypes

)

BindAction

This discussion is preserved as it was. New answers, comments, and votes are closed.