SkateboardPlatform

Show Deprecated
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.

Summary

Properties

The SkateboardPlatform's active SkateboardController.

READ ONLY
NOT REPLICATED

The Humanoid that is controlling the SkateboardPlatform.

READ ONLY
NOT REPLICATED

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.

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

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.

Methods

ApplySpecificImpulse(impulseWorld: Vector3): void  

Adds ''impulseWorld'' to the SkateboardPlatform's BasePart.Velocity.

Events

Equipped(humanoid: Instance, skateboardController: Instance): RBXScriptSignal  

Fired when the skateboard is equipped.


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


Fired whenever the skateboard is unequipped.

Properties

Read Only
Not Replicated

The SkateboardPlatform's active SkateboardController.

ControllingHumanoid

Read Only
Not Replicated

The Humanoid that is controlling the SkateboardPlatform.

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.

StickyWheels

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

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.

Methods

ApplySpecificImpulse

void

Adds ''impulseWorld'' to the SkateboardPlatform's BasePart.Velocity.

Parameters

impulseWorld: Vector3

Returns

void

Events

Equipped

Fired when the skateboard is equipped.

Parameters

humanoid: Instance

The Humanoid associated with the character equipping the skateboard.

skateboardController: Instance

MoveStateChanged

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

Parameters

newState: MoveState

The new MoveState.

oldState: MoveState

The old MoveState.


Unequipped

Fired whenever the skateboard is unequipped.

Parameters

humanoid: Instance

The Humanoid associated with the character that unequipped the skateboard.