Class · inherits Controller
SkateboardController
Translates player input into throttle and steer axis values for a
SkateboardPlatform.
About SkateboardController
A SkateboardController is an object responsible for translating PlayerActions
to movements with a SkateboardPlatform.
Properties 2
Steer
: floatReadOnlyNotReplicatedThe direction of movement, tied to the keys A and D. Must be 1 (right), 0 (straight), or -1 (left). Will refresh back to 0 unless constantly set.Throttle
: floatReadOnlyNotReplicatedThe direction of movement, tied to the keys W and S. Must be an integer 1 (forward), 0 (null), or -1 (reverse). Will refresh back to 0 unless constantly set.
Events 1
AxisChanged
SkateboardController.AxisChanged:Connect(function(axis))Fired when any input state of the skateboard controller is updated.Fired when any input state of the skateboard controller is updated. The
axisis fired with either"Throttle"if the throttle state of the skateboard was updated or"Steer"if the steering state of the skateboard was updated.
SkateboardController also has every member of Controller. 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.