SkateboardPlatform

Visualizza obsoleti
deprecato

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.

Sommario

Proprietà

  • sola lettura
    non replicato
    lettura parallela
    deprecato

    The SkateboardPlatform's active SkateboardController.

  • sola lettura
    non replicato
    lettura parallela
    deprecato

    The Humanoid that is controlling the SkateboardPlatform.

  • lettura parallela
    deprecato

    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.

  • lettura parallela
    deprecato

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

  • lettura parallela
    deprecato

    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.

Proprietà inherited from PartProprietà inherited from BasePartProprietà inherited from PVInstance

Metodi

Metodi inherited from BasePartMetodi inherited from PVInstance

Eventi

Eventi inherited from BasePart

Proprietà

sola lettura
non replicato
lettura parallela

The SkateboardPlatform's active SkateboardController.

ControllingHumanoid

sola lettura
non replicato
lettura parallela

The Humanoid that is controlling the SkateboardPlatform.

Steer

lettura parallela

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

lettura parallela

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

Throttle

lettura parallela

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.

Metodi

ApplySpecificImpulse

void

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

Parametri

impulseWorld: Vector3

Restituzioni

void

Eventi

Equipped

Fired when the skateboard is equipped.

Parametri

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.

Parametri

newState: Enum.MoveState
oldState: Enum.MoveState

Unequipped

Fired whenever the skateboard is unequipped.

Parametri

humanoid: Instance

The Humanoid associated with the character that unequipped the skateboard.