Revert Studio changes
Undo exactly the Studio changes one OofChef turn made, without touching your own edits, and what to do when a revert is blocked or partial.
On this page
Revert undoes the Studio changes that one OofChef turn made: the parts it inserted, the properties it changed and the scripts it edited. It never undoes a change the turn did not make, so your own edits are safe.
Revert a turn
- Find OofChef's reply to the message whose changes you want to undo.
- Click Revert Studio changes on that reply. (It only appears on turns that changed your place.)
- OofChef shows what it will undo and asks Revert this turn's Studio changes?
- Revert changes undoes this turn only.
- If a later OofChef turn changed something on top of this one, the turn cannot be undone alone, and the dialog offers Revert this and later turns instead: it undoes this turn and every OofChef turn after it.
OofChef confirms with a message such as "Reverted 14 Studio change(s) from this turn."
Revert also comes up when you regenerate or delete messages that changed Studio, so a new attempt does not build on top of the old one.
How it works
Every change OofChef makes in Studio is recorded in Studio's own undo history, tagged with the turn that made it. A revert undoes only the entries carrying that turn's tag, newest first, and stops at the first entry it does not own. That is why it can never undo your work.
It also means:
- A newer change on top blocks the revert. If you (or a later OofChef turn) changed something after the turn, that change sits on top in the undo history. OofChef stops there and tells you what is in the way. Use Revert this and later turns when the blocker is a later OofChef turn, or undo your own change in Studio first.
- Partial reverts. If OofChef can undo only some of a turn's changes before reaching a blocker, it reverts those and tells you how many older changes from the turn are still in place.
- Protected instances can be reverted. A revert you start may undo changes to protected instances, because you asked for it. The agent's own undo cannot: an undo it asks for that would change something protected is redone at once.
- Reopening the place clears the history. Studio's undo history resets when the place is closed and reopened, so a revert after that finds nothing to undo. When OofChef kept a restore point from before that run, the revert offers Restore the snapshot from before this run instead: it puts the items the run changed back from OofChef's copy.
- Effects outside the place cannot be undone. Assets already uploaded to Roblox, DataStore writes made during playtests and similar effects are not part of the undo history.
Files in a linked Rojo project
In a place with a linked Rojo project folder where you allowed edits, OofChef changes the repo's files instead of Studio, and the OofChef Bridge backs up every file before it changes it. Reverting the turn restores those files too: edited files get their old text back, files the turn created are removed, deleted ones come back and moved ones go back where they were. While your rojo serve is running, it syncs the restored files into Studio (OofChef does not check that part).
- A file you changed after the turn is left alone. If you (or a later turn) saved a file after OofChef changed it, the revert keeps your version and names the file, so your edit is never lost.
- It works with Studio closed. A turn that changed only files is reverted through the Bridge; Studio does not have to be open.
- The Bridge must be running on the PC that links the folder, with the folder still linked and edits still allowed. After Unlink (linking it again makes a new link) or Make read-only, earlier turns' files can't be reverted from the chat. Backups are kept 14 days; Open backups in the Bridge window shows them.
- A turn reverts once. After its files are back, the turn reads as reverted and offers no second revert.
Revert needs a recent OofChef plugin. If OofChef asks you to update it, restart Studio so the plugin updates itself.
You must stop first
You cannot revert while the turn is still running. Press Stop, then revert.
Other ways to undo
- Studio's own Undo (Ctrl+Z in Studio) works as usual, one step at a time.
- Ask OofChef: "undo the last change" uses its Undo / Redo tool.
- Checkpoints: OofChef can save a named restore point of part of your place before a risky change and restore it later. Ask for one: "make a checkpoint of the map before you start."
- Restore points: OofChef copies what each run changes before it changes it and keeps the copy, even after you close Studio. They are being switched on in stages. See Restore points.
- Snapshots & Diff lets OofChef prove exactly what changed between two moments.
For anything you cannot afford to lose, save a copy of your place in Studio (File › Save to File As or publish a version) before a large change. OofChef's revert is precise, but a backup is a backup.