Relay API Reference
Native modules available to Relay scripts, grouped by whether you need to import them.
Auto-imported
Section titled “Auto-imported”Available as bare globals in every script — no import needed. See Globals for the full list: printing/string/utility functions, the Vector3 type, and the Coroutine() function.
Import required
Section titled “Import required”| Module | Description |
|---|---|
| math | Constants and math functions |
| log | Logging (debug/info/warning/error) |
| json | Sandboxed JSON file loading, asset pack scripts only |
| railroader | The game itself: world, UI extension, cars, track, operations |
Asset packs can also export their own modules for cross-pack imports (from "domain/module" import ...) — see Modules.
© 2026 Giraffe Lab LLC. All rights reserved.