PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

BindButton

Activates an overriding bind on the specified button.

Parameters

Name Type Default Description

Returns

Return Type Summary

Code Samples


Controller:BindButton1

The example below when placed inside a /LocalScript, would result in a GUI saying “Press Backspace to win!”.

local ControllerService = game:GetService("ControllerService")
local humanoidController = ControllerService:FindFirstChildOfClass("HumanoidController")
humanoidController:BindButton(Enum.Button.Dismount, "win!")