Function of time
time.every
Calls fn every seconds, precise to 1 ms and never drifting; use it for music.
time.every(seconds: number, fn: () -> ()) → Connection
Parameters
secondsnumberfn() -> ()Returns
ConnectionUsed in
local timer = time.every(0.1, function()Guide: Parkour, a room eachrun's time. Ten times a second the action bar shows it. `time.every` givesGuide: Parkour, a room eachtime.every(seconds, fn) -> connection -- precise (1 ms), never drifts; use it for musicTime and tweensrange; invalid values raise catchable errors. `time.every` remains a repeatingModules and tasks- It covers `time.on_tick`, `time.every` and the survival eventsLimits and reload- A `time.every` timer that does not fit retains its place among due timers.Limits and reload