BindButton (Function)

From Goodblox Wiki
Revision as of 05:03, 27 September 2021 by Xyrafrost (talk | contribs) (created the page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"