Design and test a Roblox time trial before you open Studio
Place the gates, race them, try to cheat them. Then download a ready course script for the Gatewren kit. Free, in your browser.
R race · D drive (WASD or arrows, or hold a finger on the map) · E cheat test · Del remove gate · Ctrl+Z undo. Every gate pass goes through the kit's own server checks (order, distance, minimum split time), ported line for line from Course.luau.
Splits and checks
| Gate | Leg (studs) | Server minimum | Last run | Best | Delta |
|---|
Your runs
| # | Mode | Time | Result |
|---|
Export
Put the script in ServerScriptService (it replaces the kit's example). It builds the gate Parts, registers the course and starts Gatewren. Your edits save in this browser automatically.
How it works
- Design and race it here. Place gates, set the racer's speed and the server's
maxSpeed, and run the course. The panel shows each split, your best, the live delta and every server decision. - Get the kit. The server module, race maths and the racer HUD (timer, deltas, glowing next gate, arrow) as a drag-in
.rbxmxor Rojo folder. - Drop in your course script. It builds the gates, and
course.finishedgives you the time, splits and "new best" to pay rewards or post to a leaderboard.
What's inside the $4.99 kit
Gatewren.luau: server module; re-checks every gate (order, distance, minimum split time) and saves personal bests withUpdateAsyncCourse.luau: pure race maths (crossing test, checks, deltas, daily layout), unit-tested; the same code this page runsGatewrenClient.client.luau: crossing detection, timer, split deltas, glowing next gate, arrow, "NEW BEST!" banner, on foot or in vehiclesExample.server.luau: an 8-gate course around spawngatewren-1.0.0.rbxmx: drag into Studio- 11 Luau tests, all passing; README
FAQ
Why not a Touched checkpoint script?
A timer that trusts the client's Touched events is easy to fake: an exploiter fires the event for every checkpoint and posts a 2-second lap. Gatewren's server re-checks the order, the racer's real position and the minimum time each leg can take. Press “Try a teleport cheat” above to watch both checks refuse it.
What should maxSpeed be?
The fastest a legit racer can move, in studs per second, with some margin (default walk speed is 16; the kit's example uses 60 for runners). A leg is refused when it is done faster than its straight-line length ÷ maxSpeed × 0.9. Set the racer speed above maxSpeed here to see where honest players would be refused.
How does the daily layout work?
Course.dailyOffsets shifts each middle gate sideways and up or down from a seed of the UTC day, so every server builds the same course today and a new one tomorrow. Start and finish stay put. Pick a date above to preview it.
Does it work for cars, boats and planes?
Yes. When the racer sits in a seat, the seat is the racer, so any vehicle works. Gates are discs facing the direction of travel, so rings in the sky work the same as gates on a road.
Does the exported script work without the kit?
No: it builds the gates and calls Gatewren.course; the checks, saving and HUD are in the kit.
Questions or a bug? cybermax.tools@gmail.com. Roblox is a trademark of Roblox Corporation; Gatewren is made by CyberMax and is not affiliated with Roblox.
Free: the Roblox Starter Kit
7 free Luau modules (damage, pets, shop formatting, admin audit log, tycoon guards and more) plus 3 free calculators, then 5 short emails with the scripting fixes we see go wrong most often.