ContextActionService

Description

Key Binding Service

Properties

Functions

    BindInput()
    Binds a function with the user input, used to custom the game logic triggered by keys. The BindInputInfo created by this method has a priority of -1.

    BindInputByPriority()
    Binds a function with the user input. It can specify a priority. The lowest priority set by this method is 0. When the same BindInputs are triggered, the one with the higher priority will be triggered first.

    GetAllBindInputInfo()
    Retrieves all binding information, and returns as a list.

    GetBindInputInfo()
    Retrieves the binding information of specified actionName, and returns as a list.

    RemoveAllBindInputs()
    Deletes all binding information.

Events

    ToolEquippedByLocal()
    Triggered when the current player is equipped with a tool.

    ToolUnequippedByLocal()
    Triggered when the current player removes a tool.