Class · inherits Instance
Controller
The base class for controller objects, such as the HumanoidController
object.
About Controller
The base class for controller objects, such as the HumanoidController
object.
Methods 3
BindButton
(button: Button, caption: string) → ()Activates an overriding bind on the specified button.GetButton
(button: Button) → booleanReturns whether or not Button is being pressed.UnbindButton
(button: Button) → ()Removes the bind on button.
Events 1
ButtonChanged
Controller.ButtonChanged:Connect(function(button))Fired when the pressed state of a bound button is changed. This event can be used in conjunction withController.GetButtonto see whether a bound button is being pressed down or not.
Controller also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.