BindButton (Function)
From Goodblox Wiki
Jump to navigationJump to search
Function | |
---|---|
Syntax | BindButton( Button button, String action ) |
Returns | n/a |
Description: | Binds action to button. |
In Object: | Controller |
Example
When run from a LocalScript...
game:GetService("ControllerService").Instance:BindButton(Enum.Button.Dismount, "Win") -- Will result in a Gui saying "Win"