Roblox UtilitiesDevlHub Roblox Documentation

Class

SkateboardController

Inherits
Controller › Instance › Object
Memory category
Instances

Translates player input into throttle and steer axis values for a SkateboardPlatform.

A SkateboardController is an object responsible for translating PlayerActions to movements with a SkateboardPlatform.

Properties 2#

SteerfloatThe 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.ReadSafeReadOnlyNotReplicated
ThrottlefloatThe 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.ReadSafeReadOnlyNotReplicated

Steer: float#

ReadOnlyNotReplicatedReadSafe

The 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: float#

ReadOnlyNotReplicatedReadSafe

The 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#

AxisChangedFired when any input state of the skateboard controller is updated.

AxisChanged(axis: string)#

Fired when any input state of the skateboard controller is updated. The axis is fired with either "Throttle" if the throttle state of the skateboard was updated or "Steer" if the steering state of the skateboard was updated.

NameTypeDefaultDescription
axisstringA string, either "Throttle" or "Steer", indicating which input state of the skateboard controller changed.

Inherited members#

Inherited from Controller 6
Events (1)

ButtonChanged

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed