Skip to content

Class · inherits Instance

Controller

Official docs ↗

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

  • ButtonChangedController.ButtonChanged:Connect(function(button))Fired when the pressed state of a bound button is changed. This event can be used in conjunction with Controller.GetButton to 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.