The IDE

Browse your place's explorer, edit scripts in a full code editor with live two-way sync to Studio, change properties and attributes, export a Rojo project, and keep OofChef out of what Rojo manages.

On this page

The IDE puts your whole place one tab away. Browse the Studio explorer, read exactly what OofChef wrote, and edit Scripts, LocalScripts and ModuleScripts yourself in a full code editor, in live two-way sync with Studio.

Open it with the IDE button in the top bar, or Open script IDE in the Studio menu. Studio must be linked.

The explorer

  • Shows your place's services and instances, like Studio's Explorer.
  • Search the explorer and script contents from the search box. For big places, the explorer shows the first matches; narrow the search to reveal more.
  • Very large places may load partially: the IDE says how many of the place's instances Studio sent.
  • Refresh re-reads the explorer from Studio.

Select an instance and press F2 to rename it, Delete to delete it, or Shift+F10 for its actions. Deleting removes the instance and everything inside it from your place in Studio.

Editing scripts

Choose a Script, LocalScript or ModuleScript to open it in the editor. Each script opens in its own tab.

  • Ctrl+S saves the script straight to Studio.
  • Ctrl+P quick-opens a script by name.
  • Closing a tab with unsaved edits asks first.

Live sync and conflicts

The IDE stays in sync with Studio both ways:

  • When a script changes in Studio (because you or OofChef edited it), the open tab updates, or tells you it changed so you can decide.
  • If you try to save a script that changed in Studio since you opened it, the IDE asks before it overwrites the Studio version, and can show you both versions.
  • When a script changed in Studio while you were editing it, the tab shows Changed in Studio with Compare and Load Studio's version. Loading Studio's version replaces your unsaved edits, so the IDE asks first.
  • Clicking the open script in the explorer again reloads it from Studio; with unsaved edits, the IDE asks first (Discard and reload).
Note

If the IDE says a script was loaded as a truncated copy, saving is turned off for it so it cannot be cut short. Refresh the IDE (and restart Studio if the plugin is old) to load the full script.

Properties and attributes

Select any other instance to see its properties and attributes. Changes save straight back to Studio.

  • Attribute names use letters, numbers and underscores. Names starting with RBX are reserved by Roblox.
  • Boolean attributes take true or false.
  • Deleting an attribute means scripts that read it get nil.

Creating instances

Create an instance by giving it a name with an extension:

Name ends inCreates
.server.lua or .server.luaua Script
.client.lua, .client.luau or .local.luaua LocalScript
.lua or .luaua ModuleScript
anything elsea Folder

Rojo export

The IDE can export your place for Rojo (opens in a new tab) and external editors:

  • default.project.json, the Rojo project file,
  • sourcemap.json (Ctrl+Shift+P opens it),
  • a full Rojo project archive (.tar) with every script as a .luau file.

What the archive holds:

  • Every script in full, byte for byte as Studio has it. A script too long for one read is read again on its own. A script over 1,000,000 characters stops the export, and the IDE names it, so an archive never holds a cut-short script.
  • File names that work on Windows and Mac. Every file gets its own name, even when two scripts share a name or differ only in capital letters. Names with characters a file name cannot use (/, :, ?, a trailing dot), reserved names like CON, names with dots, and names with letters outside plain ASCII (Café, emoji) get a safe file name, while the instance keeps its real name in the project file. That way any unzip tool, including the tar built into Windows, unpacks the archive with the right names.
  • Scripts, LocalScripts and RunContext as Studio has them, named the way Studio's Script Sync names files (see the table below).
  • Studio-only content stays safe. Every service and instance in default.project.json has $ignoreUnknownInstances on, so running rojo serve on the export never deletes what exists only in Studio.
  • OOFCHEF_EXPORT_REPORT.md, which lists every instance that had to be renamed (two siblings with the same name), every file named differently from its instance, and everything the archive leaves out.

Other instances (folders, parts, UI, values) are in default.project.json with their class, their simple properties (on/off, number and text values such as Anchored, Transparency or Text), their attributes and their tags. Sizes, positions, colors, materials, terrain and the camera are not exported: OOFCHEF_EXPORT_REPORT.md counts what was left out. Build the place with Rojo 7.7 or newer: rojo build -o place.rbxlx.

How files map to scripts

The archive uses Studio Script Sync's naming. Rojo's own default (emitLegacyScripts on) reads .client.luau differently, so the export's default.project.json sets emitLegacyScripts to false and adds a syncRules entry for .local.luau.

FileIn this export (Script Sync naming)With Rojo's default naming
Name.server.luaua Script, RunContext Server (or Legacy, set in Name.meta.json)a Script, RunContext Legacy
Name.client.luaua Script, RunContext Clienta LocalScript
Name.local.luaua LocalScripta ModuleScript named Name.local
Name.luaua ModuleScripta ModuleScript

A script with children is a file plus a folder of the same name beside it (Main.server.luau and Main/).

The export is one way: it writes the files and never reads them back. To have OofChef work from (and edit) your Rojo project's own files, link the project folder in the OofChef Bridge (Windows): see Rojo projects.

Rojo without a linked folder

If Rojo syncs your place, its files are the real copy of every script Rojo manages: rojo serve overwrites a change made in Studio the next time it syncs. On Windows, link the project folder in the OofChef Bridge and OofChef reads those files too, and edits them once you allow edits for the folder. Without the Bridge (on a Mac, for example), tell OofChef which parts of the place Rojo manages, so it never edits them in Studio:

  1. Open the place in Studio with the OofChef plugin.
  2. In Settings › Memory › Rojo project, turn on This place is synced by Rojo.
  3. Paste the place's default.project.json and click Save project file.

OofChef lists what Rojo manages, for example ReplicatedStorage.Shared ← src/shared. From then on, in that place:

  • OofChef doesn't edit, create, rename, move or delete scripts Rojo manages in Studio. Instead it names the file the change belongs in and gives you the change as a diff to apply to your files.
  • OofChef's create and duplicate tools don't add other instances (a Folder, a Part) to a folder Rojo manages either, because Rojo deletes instances it has no file for. The one exception is an instance added directly inside a node that has $ignoreUnknownInstances on in the project file: Rojo keeps those, but not ones added deeper, in a folder Rojo reads from disk.
  • A rename that would also rewrite references in scripts Rojo manages is refused too. OofChef renames without updating references and gives you the reference changes as a diff instead.
  • The IDE refuses to save or change those scripts, with the same reason.
  • In a place with a linked project folder, the folder's own mapping is used instead of this setting, and the refusal names the exact file. When you allowed edits for that folder in the Bridge window, saving a script Rojo manages in this IDE saves its file instead (the same version check: a file changed since you opened it is a conflict, never overwritten), and the IDE's New file, Rename, Move and Delete change the repo's files the same way.
  • Everything else in the place works as usual.

OofChef also refuses, and says why, a change it cannot check against the project file: one that names a script only by an internal reference instead of its path, or one sent while Studio has not yet said which place is open (for a few seconds after Studio reconnects). It sends it again once it can check it.

The setting belongs to the place, so every chat about that place follows it. A published place is known by its place ID. An unpublished place is known only by its name, so every unpublished place with that name (a new Baseplate, for example) follows the same setting; publish the place, or remove the setting, if that gets in the way. OofChef keeps the paths Rojo manages, not the file itself, for up to 20 places. Paste the file again whenever you change the project, and turn the switch off if Rojo no longer syncs the place.

OofChef reads project files up to 64 KB, with up to 400 $path nodes at most 16 instances deep, instance names on those paths of up to 64 characters, and up to 8 KB of managed paths in all. A larger project file is refused with the reason, rather than read in part.

Note

OofChef checks its tools that edit, create, rename, move and delete scripts and instances. Inserting a model and running Luau code in Studio are not checked. With this setting alone, OofChef doesn't read your project folder or talk to rojo serve: link the folder in the Bridge for that.

Compatibility mode

With an older OofChef plugin, the IDE loads scripts in compatibility mode: you can read and edit scripts, but properties and attributes are not available and saving takes a slower path that cannot detect Studio-side changes. Restart Studio so the plugin updates itself, then reload the IDE.

Shortcuts

See Keyboard shortcuts.

Back to top