SlashCo Wiki

Player:AddSpeedEffect

  Player:AddSpeedEffect( string key, number speed, number priority )

Description

Registers a named speed modifier for the player and immediately recalculates their movement speed via Player:UpdateSpeed.
If multiple speed effects are active, the one with the highest priority wins.

Arguments

1string key

Unique identifier for this speed effect.

2number speed

Run speed to apply.

3number priority

Determines which active speed effect takes precedence.