Roblox Tooling
When to Load
Rojo and Studio sync, asset uploads, packages, tool pins, lint/format, Lune and CI. Open Cloud keys and scopes: roblox-cloud. Writing tests: roblox-debugging.
"Field-observed" = seen in the owner's projects; reproduce on your setup.
Traps (symptom -> cause -> fix)
- Studio shows an old tree -> the Rojo plugin syncs only from the server and port it is connected to; files on disk alone change nothing. Serve the checkout you edited and connect to it. A running serve also keeps its old tree after
*.project.jsonedits or package installs (the next sync can delete instances): restart serve and reconnect. - Rojo drops the connection every time serve restarts -> the stock plugin never reconnects after a server restart, whatever its Auto Reconnect and Confirmation settings (field-observed, Rojo 7.7). Zero-click needs a patched plugin or a bridge that detects the new server, reconnects and accepts the sync for the matching place ID; otherwise reconnect by hand.
- Meshes sync as grey boxes -> live sync can't set
MeshPart.MeshId, terrain or CSG (Roblox's Rojo docs). Upload the mesh as an asset and reference its id, or import the built file (rojo build). Uploading with an asset-sync tool: keep its lockfile (next trap). - Uploads duplicate assets -> Asphalt-style tools skip unchanged files by lockfile hashes; a missing or stale lockfile re-uploads everything as new assets. Commit sources, catalog and lockfile together.
- Importing thousands of meshes one at a time -> the Studio Importer queue: select many files, set one item (including Creator = the group), right-click -> Apply settings to all, then import all. Don't open several Studios.
- Uploads from an agent or CI -> in-engine
CreateAssetAsyncreported "not available yet" (field-observed). Agent in Studio: the MCP'sopen_cloud_invoke, no key; a group game uploads to the group (roblox-studio-mcp§2). CI: an Open Cloud key with asset write scope for the group. - Two devs with Rojo overwrite each other -> Rojo owns code only; map, models and UI stay in Studio (Team Create). Each dev serves into their own dev place,
servePlaceIdspins each project to its place, and everyone pins the same Rojo version inrokit.toml. - Stray duplicate folders keep coming back ->
$ignoreUnknownInstances: trueleaves Studio-only instances alone. Set itfalseon containers that hold only disk code (deletes anything not on disk); keeptrueon shared services with Studio-made content. A disk folder under$pathnamed like an explicit project child creates two same-named folders (field-observed). - Rojo 7.7 serve crashes or stops applying edits -> its watcher can crash on atomic writes (a formatter's
*.tmp, a package manager replacingPackages/). Never install packages while serving; format only changed files; restart serve. Before measuring, read back a just-changed value from the live peer. - CI publish rejected -> publishing needs a user-owned API key with
universe:publish(+universe-places:writeto save versions); group-owned keys can't be granted publish (Roblox's Rojo docs). - "0 errors" while types are broken -> luau-lsp prints
TypeError:lines, so a filter on lowercaseerrormisses them. - Blender FBX import lands mirrored in X -> the Blender-to-Studio axis/handedness conversion itself can mirror X, not only a script's axis swap (field-observed). Fix it in the export, not the layout. Check with an asymmetric anchor (a marker at +X only): front/up anchors can't detect a mirror.
Review checklist
| Symptom | Check |
|---|---|
| Edits not in Studio | Which server/port is connected, which checkout it serves, restarted after project edits? |
| Package won't resolve | Realm of each dependency, the constraint pair named in the error, lockfile diff |
| Open Cloud publish breaks materials | MaterialVariant TexturePack ids (§5) |
1. Rojo and Studio sync
- Roblox's Rojo docs: Script Sync, partially managed (Rojo owns code) or fully managed (repo builds the place). Separate environments should be separate games under one group (data stores and secrets are scoped to the game).
rojo syncback(7.7+) converts a saved place/model file (--input) into files by the project'ssyncbackRules; it is not live two-way sync and can delete or rewrite mapped files. Runrojo syncback --dry-run --list --input <file>first.- Don't mix MCP or Studio script edits with a running serve on the same tree without deciding which side wins; Script Sync and
rojo serveare competing writers (§2). - Installing models into Studio while Rojo synced the same
.rbxmstacked 3-9 copies per model (field-observed): count instances by name after every install. - Generated UI needs one source of truth: hand or MCP edits to a builder's output are wiped by the next install. Make installers refuse to drop or retype an existing instance, and back up replaced screens.
2. Script writes from plugins and MCP; Script Sync
- Write source with
ScriptEditorService:UpdateSourceAsync(script, callback): it updates an open editor (and re-invokes the callback if the editor rejects a stale update). A raw.Sourcewrite can clobber in-editor edits. Read withGetEditorSource(not.Source) while a document is open. The callback may not yield; returningnilcancels. - Wrap each bounded mutation in
ChangeHistoryService:TryBeginRecording/FinishRecording(id, Commit). Anilid (another recording open, or solo playtest) means stop and report, not mutate unrecorded.Cancelundoes only work in progress, not a committed recording. Edit-time only. - Script Sync syncs only
Script,LocalScript,ModuleScriptandFolder, and ignores scripts with attributes or tags (Studio warns of data loss). Resume conflicts are Keep Studio vs Keep Disk, not a merge; "Resume conflicted sync on place open" defaults to Do not resume. Limits: 10,000 scripts per top-level synced instance, 128 top-level instances. Concurrent Team Create edits to one synced script overwrite each other, and merging a Git branch doesn't update the place. Stop sync in Studio before deleting a synced folder on disk.
3. Packages and tool pins
- Rokit is the tool manager for new projects; Aftman is archived and Rokit reads
aftman.toml/foreman.toml. Rokit pins CLI tools, not dependencies. Don't migrate managers during feature work. - Wally: a bare version spec (
1.2.0) is a caret range, not a pin. The resolver doesn't backtrack: read the named conflicting constraint before touching the lockfile, and don't delete a lockfile as a default fix. Realms: a shared[dependencies]entry can only use asharedpackage; server and dev sections can use any realm.wally package --listis the publish dry-run (there is no--dry-run). - Wally link modules don't pass exported types: re-export the types you need from a local wrapper. pesde reads Wally packages via
[wally_indices]but needs asourcemap_generatorscript for their types; commitpesde.lock.
4. Tests and CI
- Split suites by what the runtime provides: pure logic in a plain Luau VM; file/HTTP/place-file work in Lune; engine APIs only in a real place. Mocked Instances produce tests that verify the mock.
- lest exit codes:
0passed,1test failures,2tool error (nothing ran). Its Studio backend is edit-modeRunScript(place scripts don't run, physics doesn't step,IsClient()andIsServer()both true) and refuses to run under$CI; engine suites in CI use the cloud backend. No backend covers input, hover, rendering or sensors. - Gate on parsed results (JUnit/JSON) or expected artifact counts, never exit code alone: a runner can exit 0 while running nothing. Never mask flakes with an unconditional retry.
- Run Selene and
stylua --checkin CI (no rewrites there). Regenerate the Rojo sourcemap after moving modules or suffixes; a stale map makes correct code look broken.
5. Field-observed failure modes
- Edit-mode
requirecache: an edit-time builder keeps old code after a module edit. Require a clone; luau-lsp rejectsrequire(x:Clone()), so cast:(require :: any)(m:Clone()). MaterialVarianton Open Cloud publishes: a Rojo-built place published through Open Cloud needed each variant's TexturePack asset set explicitly, or clients logged "Failed to load MaterialService.". ColorMaps load only from uploaded asset ids.Contentproperties (2026-11): new*Contentproperties sit beside legacy asset properties;Content.Objectvalues don't replicate yet. A Rojo + Lune deploy broke until Lune was updated: check serializer support first (thread).- Lune 0.10.x:
CFrame.lookAt(at, target)faced away (build withCFrame.fromMatrix(at, look:Cross(up).Unit, up)and compare with Studio); a UTF-8 BOM (PowerShellSet-Content) broke file reads;BasePart.Positionmissing (useCFrame.Position);Imagereads asImageContent. - Release isolation: keep next-release work in a worktree whose sync is disconnected from the candidate place, and inspect Studio before publishing; a clean commit doesn't prove the installed payload. Release gates:
roblox-publish-checklist.
6. Docs for agents
- Route first:
https://create.roblox.com/docs/llms.txt(top index),/docs/reference/engine/llms.txt(Engine API, Luau in-experience),/docs/cloud/llms.txt(Open Cloud HTTP). - Append
.mdto any docs URL for page source. For machine-checkable answers readhttps://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/reference/engine/classes/<Class>.yaml(types, security, capabilities,Deprecatedtags).
