BindButton (Function)
From Goodblox Wiki
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"