Registers a button to receive mouse clicks

Signature:

Button:RegisterForClicks(...)

Arguments:

  • ... - A list of strings, each the combination of a button name and click action for which the button's click-related script handlers should be run. Possible values: (list)
    • Button4Down
    • Button4Up
    • Button5Down
    • Button5Up
    • LeftButtonDown
    • LeftButtonUp
    • MiddleButtonDown
    • MiddleButtonUp
    • RightButtonDown
    • RightButtonUp
    • AnyDown - Responds to the down action of any mouse button
    • AnyUp - Responds to the up action of any mouse button