SkateboardPlatform

Mostrar obsoleto
descontinuado

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.

Resumo

Propriedades

  • somente leitura
    não replicado
    ler parallel
    descontinuado

    The SkateboardPlatform's active SkateboardController.

  • somente leitura
    não replicado
    ler parallel
    descontinuado

    The Humanoid that is controlling the SkateboardPlatform.

  • ler parallel
    descontinuado

    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.

  • ler parallel
    descontinuado

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

  • ler parallel
    descontinuado

    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.

Propriedades herdados de PartPropriedades herdados de BasePartPropriedades herdados de PVInstance

Métodos

Métodos herdados de BasePartMétodos herdados de PVInstance

Eventos

Eventos herdados de BasePart

Propriedades

somente leitura
não replicado
ler parallel

The SkateboardPlatform's active SkateboardController.

ControllingHumanoid

somente leitura
não replicado
ler parallel

The Humanoid that is controlling the SkateboardPlatform.

Steer

ler parallel

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

ler parallel

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

Throttle

ler parallel

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.

Métodos

ApplySpecificImpulse

void

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

Parâmetros

impulseWorld: Vector3

Devolução

void

Eventos

Equipped

Fired when the skateboard is equipped.

Parâmetros

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.

Parâmetros

newState: Enum.MoveState
oldState: Enum.MoveState

Unequipped

Fired whenever the skateboard is unequipped.

Parâmetros

humanoid: Instance

The Humanoid associated with the character that unequipped the skateboard.