PcoWSkbVqDnWTu_dm2ix
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!")