DEV Community

Korvus
Korvus

Posted on

An AI script generator that lives inside Roblox Studio

Searching for a Roblox AI script generator? Most of them are a website where you paste a prompt, copy the code back, and paste it into Studio by hand. I wanted the opposite: describe what I want, and have it appear in my place.

That's Cortex — a Studio plugin that turns plain English into Luau and runs it right there.

Type English, get working Luau

› a part that kills the player on touch
Enter fullscreen mode Exit fullscreen mode

Cortex writes it and runs it:

local part = Instance.new("Part")
part.Size = Vector3.new(8, 1, 8)
part.Anchored = true
part.Parent = workspace

part.Touched:Connect(function(hit)
    local h = hit.Parent:FindFirstChildOfClass("Humanoid")
    if h then h.Health = 0 end
end)
Enter fullscreen mode Exit fullscreen mode

No copy-paste. It's in your Workspace, and Ctrl+Z removes it like any Studio edit.

Things it's good at

  • Boilerplate you hate typing — RemoteEvents, DataStore scaffolds, Tool setups.
  • Editing the script you have open — select a script, say "add a debounce", it patches the source.
  • Prototyping — "spinning platform", "day/night cycle", "sprint on Shift" — one line each.

How it works

It's a plugin that calls a small gateway routing to frontier models (Claude, GPT-5). Generated code runs via loadstring (with a ModuleScript fallback), and every change is wrapped in ChangeHistoryService so Undo/Redo behave normally.

Try it (free beta)

  • Plugin + kit: github.com/cortex-rbx/roblox-ai-kit
  • See the terminal: cortex-rbx.github.io/cortex.html
  • Free key in the Discord: discord.gg/A3MSqwkvn7

Open beta — free for early testers. If it writes something wrong, tell me; that's exactly the feedback I need.

Top comments (0)