UnbindButton (Function)
From Goodblox Wiki
Jump to navigationJump to search
| Function | |
|---|---|
| Syntax | UnbindButton( Button button ) |
| Returns | n/a |
| Description: | Removes the bind on button. |
| In Object: | Controller |
Example
When run from a LocalScript...
game:GetService("ControllerService").Instance:BindButton(Enum.Button.Dismount, "Win")
wait(1)
game:GetService("ControllerService").Instance:UnbindButton(Enum.Button.Dismount)
-- Will show "Win" for 1 second, then remove it.