Coming soon

A model that writes Luau. Typed, idiomatic and made for the engine it runs in, from the first line to the moment you press Play.

SpiralStairs.server.luauWriting

PromptBuild a spiral staircase that lights up as someone climbs it.

1
WorkspaceEdit
OutputWriting SpiralStairs.server.luau…

A scripted preview of the kind of work the model is being trained for. The viewport is an illustration, not Roblox.

Why Luau

Most models learned Lua and guess the rest. We're putting everything into one language: the scripts, the services and the habits of the people who ship games with it.

It knows the engine

The code it doesn't write.

A general model writes Lua from 2014 and hopes Studio forgives it. Ours writes the Luau of today.

  1. wait(1)task.wait(1)

    The task library replaces wait, spawn and delay, which are throttled and deprecated.

  2. Instance.new("Part", workspace)part.Parent = workspace -- set last

    Properties first and Parent last, so the part replicates once, already finished.

  3. for _, v in pairs(list) dofor _, item in list do

    Luau iterates tables directly. No pairs or ipairs needed.

  4. count = count + 1count += 1

    Compound assignment, one of the small things Lua doesn't have.

  5. "Hi " .. name .. "!"`Hi {name}!`

    String interpolation instead of a chain of concatenations.

  6. game.Players.LocalPlayergame:GetService("Players").LocalPlayer

    Services come from GetService, which still works when a service is renamed or not loaded yet.

  7. function damage(h, n)local function damage(humanoid: Humanoid, amount: number)

    Typed, so the script stays clean when you turn on --!strict.

In Studio

Built to write server scripts, LocalScripts and modules that fit how your game is laid out.

When it breaks

Paste the Output and the stack trace. It finds the line, says why, and fixes it.

Under --!strict

Types where they help, so the type checker stays quiet and your bugs show up before Play.

Availability

We're training it now.

The Luau model is where our work is going from here. We'll share more, and open access, when it's ready.