PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

SkateboardPlatform

Show deprecated

SkateboardPlatform

Show deprecated

A SkateboardPlatform can be used to create a skateboard. When characters get on a skateboard, they are stuck to it until they press the escape key. Until then, the character uses skateboard animations and travels faster than a walking character.

Properties

SkateboardController

Controller

[ReadOnly] [NotReplicated]

The SkateboardPlatform’s active SkateboardController.

Humanoid

ControllingHumanoid

[ReadOnly] [NotReplicated]

The /Humanoid that is controlling the SkateboardPlatform.

int

Steer

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.

bool

StickyWheels

If true, wheels won’t roll without user input.

int

Throttle

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.

Functions

void

ApplySpecificImpulse ( Vector3 impulseWorld )

Adds ‘‘impulseWorld’’ to the SkateboardPlatform’s /BasePart/Velocity.

Events

RBXScriptSignal

Equipped ( Instance humanoid , Instance skateboardController )

Fired when the skateboard is equipped.

RBXScriptSignal

MoveStateChanged ( MoveState newState , MoveState oldState )

Fired when the SkateboardPlatform’s /SkateboardPlatform/ControllingHumanoid changes the force being used on the SkateboardPlatform.

RBXScriptSignal

Unequipped ( Instance humanoid )

Fired whenever the skateboard is unequipped.