Lua · Variables · Features
velocity
Your movement speed and jump stats.
| Function | What it does |
|---|---|
velocity.state() | Movement stats. Speeds are in units per second. |
#velocity.state
velocity.state()Movement stats. Speeds are in units per second.
Returns
table
speed (horizontal), vertical, takeoff (speed at the last jump), air_peak, session_max, air_time (seconds), jumps, on_ground, ducking, strafe_gain, valid (false when not playing).Example
local v = velocity.state()
if v.valid then draw.text(20, 200, math.floor(v.speed) .. " u/s", white, 18) end