The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar


GetButton returns the ImageButton created by ContextActionService/BindAction|BindAction if its third parameter was true and the device is UserInputService/TouchEnabled|TouchEnabled. The only parameter to this function must match exactly the name of the action originally sent to BindAction.

If no such action was bound or if a button was not created, this function returns nil.


Name Type Default Description

The name of the action originally passed to BindAction


Return Type Summary

An ImageButton created by BindAction