Function of time
time.on_tick
Calls fn every tick, 20 times a second, with the tick number; keep it short.
time.on_tick(fn: (tick: number) -> ()) → Connection
Parameters
fn(tick: number) -> ()Returns
ConnectionUsed in
time.on_tick(function(tick) end) -> connection -- 20 times a second; keep it shortTime and tweenslocal conn = time.on_tick(function(tick)Particles and lasersUse `time.on_tick` for work tied to world ticks. The actual wait may be longerModules and tasks- It covers `time.on_tick`, `time.every` and the survival eventsLimits and reload- `time.on_tick` coalesces missed ticks: remaining listeners resume with theLimits and reload