# Import Roblox files

> Attach a .rbxm, .rbxmx, .rbxl or .rbxlx file to a message so RoGenie can read its scripts, and insert a model into Studio safely with its scripts turned off. Being switched on in stages.

You can attach a Roblox file to a message: a model (**.rbxm**, **.rbxmx**) or a place (**.rbxl**, **.rbxlx**). RoGenie reads it on its servers, so you can ask about it ("what does this car's drive script do?", "is anything in this free model suspicious?") without opening it in Studio first. A model can then be inserted into Studio with every script turned off until you decide.

Roblox files are binary (or XML far longer than a text attachment holds), so RoGenie never reads them as plain text.

> **Note**
> Importing Roblox files is being switched on in stages. If attaching a .rbxm or .rbxl file says importing is not available for your account yet, it is not on for you yet: paste the script you want help with instead.

## Attach a file

1. Click the paperclip in the message box (or drop the file on it) and pick the file.
2. The chip shows the upload, then **Reading the file**, then what the file holds, for example **Imported model: 4 scripts, 3 parts, 2 flags**.
3. Write your message and send it. If the file is still being read, RoGenie asks you to wait a moment.

If your account cannot import Roblox files yet, the composer says so and nothing is uploaded. Paste the script you want help with instead.

## What RoGenie sees

The model gets a **summary** of the file, at most 4,000 characters:

- how many items, parts and scripts it holds, and its tree three levels deep;
- the scripts, with the flagged ones first;
- packages and asset ids it uses;
- **flags** from a quick static scan.

The model can then read any script in the file, 20,000 characters at a time. It reads RoGenie's copy, not your Studio, and it cannot change the file. A single script longer than 4 MB is listed with its size and flags, but RoGenie keeps no copy of it, so it can't be read.

Names inside the file are treated as data, never as instructions: a part named like a command to the AI is hidden from the summary.

### Flags

A flag is a reason to look at a script, not a verdict. The scan looks for:

| Flag | Why it matters |
|---|---|
| Loads a module by asset id | `require(123456)` runs code from outside the file, the usual way a backdoor hides in a free model. |
| Uses loadstring | Runs code that is built while the game runs, so you cannot read it here. |
| Uses getfenv/setfenv | Can hide what code runs. |
| Looks obfuscated | Code made hard to read on purpose. |
| Uses HttpService | Talks to the internet. This has honest uses (analytics, webhooks). |

## Insert a model into Studio

Open the file card (click the file's chip), check the flags, then click **Insert into Studio**. Your linked Studio downloads the file once and puts it in **ServerStorage › RoGenie › Imports**, in a folder named after the file:

- every **Script** and **LocalScript** is turned off;
- **ModuleScripts** stay inside the folder;
- it is one step in Studio's history, so **Ctrl+Z** removes the whole import.

The **scan card** then shows what was turned off, flags first:

- **Enable scripts** turns back on the scripts the import turned off (a script that was already off in the file stays off).
- **Keep disabled** leaves them off. Move the parts you want out of the Imports folder yourself.

Only you can insert a file. RoGenie's agent cannot insert one on its own: it can only suggest that you click the button. Studio must be open with the RoGenie plugin v1.1.152 or later, and not playtesting.

A place file (.rbxl, .rbxlx) is opened, not inserted: use **File › Open from File** in Studio. RoGenie can still read and explain its scripts.

## How long files are kept

- A file is private to your account. The uploaded file and the copy of its scripts RoGenie extracted from it are kept **7 days**. Delete them sooner from the file's card.
- They are also deleted with the chat the file was sent in, and with your account.
- The summary the model got and any script it read are part of the chat's history, like the rest of the conversation. They stay until you delete the chat, even after the file itself is gone.
- Files count against the same storage as [your place downloads](https://rogenie.ai/docs/download-place), from the moment an upload starts.

See [Limits](https://rogenie.ai/docs/limits#messages-and-attachments) for the sizes, and [Privacy and data](https://rogenie.ai/docs/privacy-and-data#roblox-files-you-attach) for how they are handled.
