# Install the Studio plugin

> Download the OofChef plugin, put it in your Roblox Studio plugins folder on Windows or Mac, and keep it up to date.

The OofChef Studio plugin is how OofChef reads and changes the place you have open in Roblox Studio. You install it once; it then keeps itself up to date.

## Download the plugin

1. On your computer, open [oofchef.com/setup](https://oofchef.com/setup) and sign in. Until Studio is connected, the home screen shows 4 setup steps.
2. Click **Download the plugin** in step 1. (In a chat the button is **Download plugin & pair Studio**, and the **Studio** button in the top bar always opens the steps.)

Your browser saves **OofChefPlugin.lua**. You don't open or run it: you move it into a Roblox Studio folder. An older download may be called `OofChefPluginLoader.lua`: that one works too. Keep only one OofChef file in the Plugins folder.

The setup steps stay on your home screen until Studio is connected, and they remember where you are: close the tab, come back tomorrow or use another computer, and they open at the same step.

> **Note**
> **Signed up on your phone?** Studio runs on a Windows PC or a Mac. Open [oofchef.com/setup](https://oofchef.com/setup) on the computer and sign in with the same account. On the phone, **Email me the link** sends you the link (to a confirmed e-mail address).

## Put it in the plugins folder

### Windows

1. Press the `Windows` key and `R` together. Paste `%localappdata%\Roblox\Plugins` and press `Enter`. (Or open File Explorer, paste it into the address bar and press `Enter`.)
2. Drag **OofChefPlugin.lua** there from your Downloads folder. Don't open the file. Just move it.
3. Close Roblox Studio all the way (check the taskbar), then open it again and open any place.
4. If Studio asks whether OofChef can connect to `oofchef.com`, click **Allow**.

### Mac

1. In Finder, choose **Go › Go to Folder** (`Shift+Command+G`), paste `~/Documents/Roblox/Plugins/` and press `Return`.
2. Drag **OofChefPlugin.lua** there from your Downloads folder. Don't open the file. Just move it.
3. Quit Roblox Studio (`Command+Q`), then open it again and open any place.
4. If Studio asks whether OofChef can connect to `oofchef.com`, click **Allow**.

> **Tip**
> If the Plugins folder does not exist, open Roblox Studio, select the **Plugins** tab on the top menu bar and click **Plugins Folder**. Studio creates and opens the right folder for you.

## Check that it loaded

After the restart, open any place. On the **Plugins** tab you should see a **OofChef** button. Click it to open the OofChef panel. The panel shows:

- the connection status (for example *Offline*, *Disconnected* or *Paired*) and the plugin version,
- a **Connect** button that gets a pairing code,
- what OofChef is doing in Studio right now, with a **Stop** button while something runs,
- a setting to **Auto-connect on start**, and an **Unpair Studio** button.

When the plugin starts, the setup steps on the website move on by themselves to step 3, **Type the code Studio shows**. Then [pair Studio with your account](https://oofchef.com/docs/connect-studio): type the 8-digit code (step 3), then click **Confirm pairing** in Studio (step 4).

## Permissions Studio may ask for

Roblox Studio may ask whether the OofChef plugin can connect to `oofchef.com` and whether it can change scripts. Allow both: the plugin needs the connection to talk to OofChef, and script access to write the code you ask for. If you denied one by mistake, you can change plugin permissions in Studio's plugin manager (**Plugins › Manage Plugins**).

If Studio shows "Failed to load plugin source. Check Studio HTTP permissions.", the plugin was not allowed to reach `oofchef.com`. Allow it and restart Studio.

## Updates

The file you install is a small loader. Each time Studio starts, it fetches the latest OofChef plugin code from `oofchef.com`, so you never need to download the plugin again for updates.

- If OofChef says **Studio: Update needed** ("This Studio runs plugin vX; OofChef needs vY or later"), restart Roblox Studio so the loader fetches the new version.
- If `oofchef.com` cannot be reached when Studio starts, the loader uses the last version it downloaded and shows "Live update fetch failed. Using cached plugin source."
- Some features need a recent plugin version, for example [reverting a turn](https://oofchef.com/docs/revert) and running Lua safely in [Plan mode](https://oofchef.com/docs/plan-mode). A restart is all it takes.

## Uninstall

Delete the OofChef plugin file (`OofChefPlugin.lua`, or `OofChefPluginLoader.lua` from an older download) from the plugins folder and restart Studio. To also stop OofChef from using a pairing, click **Unpair Studio** in the plugin panel first.

## Troubleshooting

See [Studio won't connect](https://oofchef.com/docs/troubleshooting-studio) if the OofChef button does not appear, the setup steps keep waiting at step 2, or the code does not work.
