# Restore points

> OofChef copies what each run changes before it changes it and keeps the copy on the server, so you can put your place back even after closing Studio. How to restore, what is covered, how long points are kept and who can see them. Being switched on in stages.

Before a OofChef run changes your place, OofChef copies the parts it is about to change and keeps that copy on OofChef's server. That copy is a **restore point**. You can put those parts back later, even after you closed Studio and Studio's own undo history is gone.

> **Note**
> Restore points are being switched on in stages. If you don't see **Restore points** in the Studio menu yet, they are not on for your account, and OofChef does not take them for your runs yet: use Studio's own undo, or [Revert](https://oofchef.com/docs/revert) while Studio still has the history.

## Restore a place

1. Open your place in Roblox Studio with the OofChef plugin, and link that Studio on the website.
2. Open the **Studio** menu at the top of the app and click **Restore points › View**.
3. Find the point you want. Each one shows when it was taken, what started it, how many items it holds, and whether it is **Complete**.
4. Click **Restore…** and choose:
   - **Everything**: every item in the point goes back to how it was, and the items that run created are removed.
   - **Only the items I pick**: tick the items you want back. Everything else stays as it is now.
5. Click **Restore**.

OofChef first saves what is there now as its own restore point (**Before a restore**). Then it replaces the items in one step, so **one Ctrl+Z in Studio undoes the whole restore**.

> **Tip**
> If you click **Revert Studio changes** on a reply after Studio was reopened, the revert cannot use Studio's undo. When a restore point from before that run exists, the dialog offers **Restore the snapshot from before this run** instead. See [Revert Studio changes](https://oofchef.com/docs/revert).

## What starts a restore point

- **Before a run**: OofChef's run made changes. OofChef copies each item a step names before that step runs, once per run.
- **Saved by you**: you clicked **Save restore point** in the restore points window. It copies each item directly inside your place's services.
- **Checkpoint**: you (or OofChef) saved a checkpoint with the checkpoint tool. The checkpoint is kept as a restore point too.
- **Before a restore**: the copy taken right before a restore, so you can undo the restore later.

OofChef copies an item as a whole group: the largest folder or model around the changed part that has at most 5,000 items inside. Copying a run's items is capped at 25 MB per run.

## Complete and incomplete

A point is **Complete** when every item the run's steps named was copied before it changed, the list of what the run created arrived, and OofChef saw nothing it could not cover. It is **Incomplete** when OofChef saw something it could not cover. Open **What is not covered** on the point to see why. Common reasons:

- Code OofChef ran (`run_lua`) reached items without naming them, for example a loop over everything in Workspace, a search by tag, or the items selected in Studio. What it changed there was not copied first.
- Code OofChef ran removed an item, or edited a script, that it did not name, so it was not copied first.
- An item was too large to keep, or took longer than 10 seconds to copy.
- The run touched more items than one point holds (2,000), or more links between items than it keeps.
- The run changed a service's own settings (for example Lighting), which restore points do not hold.
- The run changed terrain without saying which area.
- A playtest was running, or Studio did not answer in time.

An incomplete point still restores everything it did copy.

Complete means OofChef noticed nothing it could not cover, not that it saw every change. Code can change items in ways OofChef cannot read from it, so check the place after a restore.

## Ask OofChef to restore

You can ask in chat: "go back to how it was before the last run." OofChef can list your restore points, but it **cannot restore one without your click**. It shows a card with what would go back, and nothing changes unless you click **Restore**.

## Terrain

When a run changes terrain in a known area (for example a fill or a smooth), OofChef copies that area of terrain first. A restore pastes it back in place.

## How long they are kept

| Plan | Run restore points kept | Days kept | Pins |
| --- | --- | --- | --- |
| Free | 3 | 7 | 5 |
| Starter | 10 | 14 | 5 |
| Builder | 30 | 30 | 20 |
| Pro and Studio | 100 | 90 | 50 |

- **Pin** a point to keep it until you unpin it. Pinned points do not count toward the number kept.
- Your own saves, checkpoints and the copies taken before a restore are each counted separately, so neither checkpoints nor restoring push out a run's point.
- A point is never removed while its run is still going.
- Restore points share your place storage with [place downloads](https://oofchef.com/docs/download-place). When it is full, new copies are skipped and the point says so.
- You can save 30 restore points a day yourself, and restore 20 times an hour.

## Who can see them

Only you. Your restore points are stored for your account alone. Nobody else can list, download or restore them: not your project's teammates, and not OofChef's admins. OofChef only ever restores into a Studio linked to your own account. Deleting your account deletes all of them. Deleting a chat keeps the restore points its runs made, because they are copies of your place, not of the chat: they stay in the place's timeline under a plain name, without the chat's title, until they expire or you delete them.

## Limits

- Restoring replaces whole items. If someone else changed the same item since (for example in Team Create), a restore puts back their changes too. When the place is open in Team Create, or another Studio has the same place open with OofChef, the restore window warns you and suggests picking single items. OofChef can usually tell a Team Create session from who Studio lists in it, but not always, so check yourself when collaborators are editing.
- Links between items (for example a weld, an ObjectValue or a constraint pointing at a restored part) are pointed back by name. Any that cannot be are listed after the restore.
- Effects outside the place, such as uploaded assets or DataStore writes, are not part of a restore point.
- Restore points need a recent OofChef plugin. It updates itself within about five minutes.
