How to sync Roblox scripts between Studio and your code editor
The two approaches to keeping Roblox scripts in files on disk, file-first and Studio-first, what each is good for, and how to set up Studio-first sync with RoPhons.
Short answer
To edit Roblox scripts in VS Code, Cursor or an AI coding tool, use a sync tool that keeps the scripts as files on disk and carries changes into Studio. There are two approaches. File-first tools such as Rojo treat the files as the source of truth and build the place from them, which suits projects run like software, with git and packages. Studio-first sync, which RoPhons uses, keeps Studio as the source of truth and mirrors its scripts to a folder, which suits existing places that are built in Studio.
Why sync at all
Roblox Studio keeps scripts inside the place. That works for editing in Studio, but outside it there is nothing on disk for an editor, git or an AI coding tool to open. A sync tool fixes that by keeping a folder of script files in step with Studio, so you can:
- edit in VS Code, Cursor or another editor, with its search, refactoring and extensions;
- let AI coding tools work on the scripts with their own file tools, which uses far fewer tokens than going through Studio for every read;
- keep scripts in git, review changes and roll them back.
The two approaches
| File-first, for example Rojo | Studio-first, for example RoPhons | |
|---|---|---|
| Source of truth | The files on disk | The place in Studio |
| Project description | A project file maps folders to instances | None: the folder mirrors the place |
| Starting from an existing place | Move scripts into files first | Point it at the place; scripts come out of Studio |
| Instances that are not scripts | Can be described in files | Stay in Studio |
| Good fit | Teams that run the game like a software project, with git, packages and CI | Places built in Studio where scripts should also be editable as files |
File-first tools build the place, or the parts of it they manage, from files. Rojo is the widely used open-source tool of this kind; its documentation is at rojo.space. Because the files are the truth, everything managed by the project should be changed on disk.
Studio-first sync starts from the place as it is in Studio. When the sync starts it takes the scripts from Studio and writes them to the folder; after that, edits on either side are carried to the other while the sync runs. Nothing about the place has to be restructured first.
Neither approach is better in general. If you already run your game from files, keep doing that. If your game lives in Studio and you want your editor and AI tools to reach its scripts, Studio-first is the shorter path.
Setting up Studio-first sync with RoPhons
- Install RoPhons on Windows 10 or 11 and sign in. The sync engine and the Studio plugin come with the app; the first-run checklist installs the plugin. Restart Studio once so it loads it.
- Add your game. Drop the place folders on the window, or choose New game, and give each place its Roblox place id.
- Start the sync for a place, or Start all for every place of the game. Each sync runs in the background and restarts itself if it stops.
- Open the place in Studio. The RoPhons plugin recognises the place by its id and pairs with the matching sync. There are no ports to enter and no Connect button.
- Open the folder in your editor, or connect your AI tool under AI tools in the app. Scripts are in the place's
syncfolder.
Keep the sync running while you edit files. Studio is the source of truth: if you edit files while the sync is stopped, starting it again takes the scripts from Studio and can overwrite those edits.
Questions
Can I put the synced folder in git?
Yes, it is a folder of plain script files. Remember that with Studio-first sync, Studio stays the source of truth: restoring an old version from git changes the files, and the sync carries that into Studio only while it is running.
Does Studio need to be open?
For changes to reach the place, yes: the sync works between the folder and a running Studio with the plugin. You can read and edit the files with Studio closed, but keep the source-of-truth rule above in mind.
Is RoPhons available for Mac or Linux?
Not yet. The desktop app is Windows only; notes and assets also work in the web dashboard.
How much does it cost?
RoPhons is free for one game with one place syncing at a time and two hours of live sync a day. Paid plans add games, places syncing at once and sync all day. See pricing.