Log inGet started
World

Match Flow Kit: Countdowns, Rounds and Results

README.md

Countdown

A standalone 3-2-1-GO countdown, for any timer in a game: a respawn, a bomb, a door opening, a race start you run yourself. It uses the same ten styles and sounds as MatchFlow's pre-round countdown. It attaches to any entity, needs no siblings, and runs locally on each machine (it is not synced).

Fields: style (bold, trafficLight, pixel, hologram, cartoon, minimal, fantasy, flipClock, neon, broadcast), seconds, autoStart, loop and loopDelay, goText and caption to change the words, sounds, volume, showUi, anchor (center/top/bottom), scale, layer.

local cd = entity.spawn("BombTimer").component.add("Countdown", { style = "neon", seconds = 10, autoStart = false })
cd.events.onTick:connect(function(e) print(e.n) end)
cd.events.onFinished:connect(explode)
cd:start()

Methods: start(seconds?), stop(), isRunning(), timeLeft(). Events: onTick{n}, onFinished.