Controller
Mostrar obsoleto
no creable
The base class for controller objects, such as the HumanoidController object.
Resumen
Propiedades
Métodos
Activates an overriding bind on the specified button.
Returns whether or not Button is being pressed.
Removes the bind on button.
Eventos
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.
Propiedades
Métodos
BindButton
void
Activates an overriding bind on the specified button.
Parámetros
Devuelve
void
Muestras de código
Controller:BindButton1
local ControllerService = game:GetService("ControllerService")
local humanoidController = ControllerService:FindFirstChildOfClass("HumanoidController")
humanoidController:BindButton(Enum.Button.Dismount, "win!")
GetButton
Returns whether or not Button is being pressed.
Parámetros
Devuelve
Eventos
ButtonChanged
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.