I built an AI that writes and runs Luau inside Roblox Studio
Описание и применение
Cortex — это AI‑терминал внутри Roblox Studio, который генерирует и внедряет Luau‑код по запросу на естественном языке, автоматически оборачивая изменения в историю изменений для поддержки отмены и возврата.
Задача
Roblox Studio scripting requires boilerplate code and manual editing, slowing development and increasing errors.
Результат
Cortex automates boilerplate scripting, reduces manual coding effort, and integrates seamlessly with Studio’s undo/redo system, enabling rapid prototyping of common game features.
Рабочий процесс
- 1. Install Cortex plugin via github.com/cortex-rbx/roblox-ai-kit
- 2. Open the Cortex terminal inside Roblox Studio
- 3. Type a plain‑English request (e.g., "make a healing potion that gives +25 HP")
- 4. Cortex generates Luau code and applies it to the project (creates Tool, Script, sets properties)
- 5. Verify the result in Studio; use Ctrl+Z to undo if needed
- 6. For editing existing scripts, select the script and give a new request (e.g., "make it respawn the player on death")
- 7. Cortex edits the script’s .Source in place, preserving undo/redo history
Доказательства
Cortex AI terminal that lives inside Studio. You type what you want in plain English, it turns that into Luau, and runs it right in your place.
Every change is wrapped in ChangeHistoryService, so Undo/Redo just works.
- Дата записи: 2026-09-07T14:14:51.864Z