Collapse Sidebar


BindActionAtPriority behaves like ContextActionService/BindAction|BindAction but also allows a priority to be assigned to the bound action. If multiple actions are bound to the same input, the higher priority function is called regardless of the order in which the actions were bound. In other words, this function overrides the normal “stack” behavior of BindAction.


Name Type Default Description

A string representing the action being performed (e.g. “HonkHorn” or “OpenDoor”)

The action-handling function, called with the following parameters when the bound inputs are triggered: string (actionName), Enum.UserInputState and an InputObject

Whether a GUI button should be created for the action on touch input devices


The priority level at which the action should be bound (higher considered before lower)

Any number of Enum.KeyCode or Enum.UserInputType representing the inputs to bind to the action


Return Type Summary