Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

addSpeedModifier

addSpeedModifier(step, character, speedModifier): void

Multiplies character’s top speed by 1 + more under key, for seconds or until removed. The steer runs it at its MovementTrait.speed times every modifier it holds, never below none and no faster than its moveSpeed stat’s maximum. Different keys multiply, and a key added again replaces its last values. A sprint, a crouch or an aim’s slow the player’s own press starts. Call it from a predicted system, before characters.systems.movement to change this step’s speed, or after it to change the next step’s. An effect the room starts, such as a monster’s slow, goes on the character’s moveSpeed stat instead, as slowCharacter puts it there. As Unreal’s MaxWalkSpeed read through GetMaxSpeed and Roblox’s WalkSpeed, with a key per writer so two plugins compose.

Parameter Type
step PredictedStep
character Entity
speedModifier SpeedModifier

void