Lesson 3 of 4
Set up your machine, part 3: connect, play, and the optional extras
Build Beacon Yard's place with Rojo, connect the Studio plugin, sync a change from VS Code into Studio, press Play, and optionally add Node.js and Blender, with an uninstall checklist for every tool.
By the end you can
- Build the place from the repository, connect Rojo, and see a saved file change Studio
- Press Play on the full game and read which warnings are expected
- Install Node.js and Blender only when a later lesson needs them, and remove any tool cleanly
Before this: Set up your machine, part 2: Rokit, Rojo, Wally, StyLua, Selene and luau-lsp
1One file, two windows
Keep your editor and Studio open together. Add a comment to src/shared/Config.luau, save, and look at Studio: the same comment is in ReplicatedStorage.Shared.Config before your hand is off the keyboard. This lesson wires that up and then proves the whole game runs.
The whole loop in under a minute: build the place, serve, connect, edit, play.
Transcript
- 0:00 wally install fetches the packages.
- 0:04 rojo build writes beacon-yard.rbxlx.
- 0:08 Open that file in Studio.
- 0:11 rojo serve starts the sync server.
- 0:15 Press Connect in the Rojo panel.
- 0:19 Accept the sync: Studio says Connected.
- 0:26 Open Config in Explorer, go to the end.
- 0:29 Append a comment to Config.luau.
- 0:35 The comment appears in Studio at once.
- 0:39 Press Play: the game runs.
Put the first session in order.
Answer
1. wally install 2. rojo build -o beacon-yard.rbxlx 3. Open beacon-yard.rbxlx in Studio 4. rojo serve 5. Press Connect in the Rojo plugin. Fetch packages with wally install, build the place from the files, open it in Studio, start rojo serve, and connect the plugin.
Open this step in lesson mode · Link to this step · This confused me
2Build the place
From inside the clone, fetch the Wally packages first (if you have not already run wally install in part 2), then build the place file:
wally install
rojo build -o beacon-yard.rbxlx
default.project.json maps the git-ignored Packages/ and ServerPackages/ folders into the place, so rojo build fails until wally install creates them. Once packages are on disk, Rojo reads default.project.json and writes a complete place file. In Studio, File, Open from File, and pick beacon-yard.rbxlx. Starting from the built file, rather than a Baseplate template, keeps the template's own floor and spawn out of the yard.
The built file is ignored by Git. If you ever change default.project.json itself, build again and reopen: some project-file changes, such as properties on services, only arrive cleanly in a fresh build.
Why open the place Rojo built instead of a new Baseplate?
Answer
The built place contains exactly what the project file describes, and nothing from a template. A template brings its own baseplate part and spawn. The built place is the project file and nothing else, so what you see is what the repository says.
Open this step in lesson mode · Link to this step · This confused me
3Serve and connect
rojo serve
The terminal reports that Rojo is listening on port 34872 and keeps running. Leave that window open; closing it or pressing Ctrl+C stops the sync. In Studio, Plugins, Rojo, then Connect. The widget turns to Connected and names the project, beacon-yard.
Now test the loop. In VS Code, add -- hello from disk as the second line of src/shared/Config.luau and save. In Studio's Explorer, open ReplicatedStorage, Shared, Config: the comment is there. Delete it in VS Code, save, and it disappears from Studio too.

Select a numbered pin, or a row below, to read what it marks.
Connected. From here on, saving in VS Code updates Studio.
Both sidesRemember: Rojo is a photocopier from folder to Studio.
You close the terminal running rojo serve, then save another change to Config.luau. What happens in Studio?
-- terminal: rojo serve (closed)
-- VS Code: save src/shared/Config.luau
Answer
Nothing; the plugin loses the connection and the change does not arrive. rojo serve watches the folder and sends changes to the plugin. With it closed, nothing is watching. Start it again and reconnect, and Rojo brings Studio up to date.
Open this step in lesson mode · Link to this step · This confused me
4The copy only goes one way
Try the opposite direction once, on purpose. With Rojo connected, open Config in Studio and type a comment into it there. Then make any change to Config.luau in VS Code and save.
Where does it break?“A photocopier from folder to Studio” is a good picture of rojo. Where does it stop being true?
It breaks here. A photocopier never touches the original, and Rojo by default never copies back either: an edit typed only into Studio is overwritten by the next sync from disk.
The true model. Rojo serve watches the repository and pushes changes into the place through the Studio plugin. The files are the source of truth. Hand-built parts and terrain that are not in the project file stay only in the place file.
Where should a code change to Beacon Yard be made, so it is kept?
Answer
In the .luau file in the repository, then committed with Git. The repository is the source. Rojo copies files into Studio and overwrites Studio-only edits; the built place file is ignored by Git and rebuilt from the files.
Open this step in lesson mode · Link to this step · This confused me
5Press Play
Press Play (F5). The yard appears around you: walls, six gold pads, the beacon, the drone's spawn, the shop. You are on the main branch, the newest milestone.
Output will show a few warnings, and that is expected:
- Lines starting with
[Ids]say that a feature is switched off because its Roblox id is 0. The repository ships with every account id at 0 until you create your own, in the publishing lessons. - A DataStore warning says the place is not published. Saving needs a published place; the game keeps your coins in memory for the session instead.
Red errors are not expected. If you see one, read its first line before changing anything.
Then run the game's own test suite. Switch the command bar to the server view (the Client/Server toggle at the top), paste this and press Ctrl+Enter (Cmd+Enter on a Mac), or click Run. You call the RunGameTests bindable instead of requiring the test module straight from the command bar because the command bar has its own require cache (Playtesting: Play, Run, Team Test, server and client views explains why).
game.ServerScriptService.RunGameTests:Invoke()
Output fills with TEST PASS lines. Press Stop (Shift+F5) when you are done.
Build along
default.project.jsonsrc/shared/Config.luau
In the clone, run
wally install, thenrojo build -o beacon-yard.rbxlx, open that file in Studio, and runrojo serve.You should see The terminal says Rojo is listening on port 34872.
In Studio, open the Plugins tab and press Rojo, then Connect.
You should see The Rojo widget shows Connected and the project name beacon-yard.
Add
-- hello from disktoConfig.luau, save, check Studio, then remove it and save again.You should see The comment appears in ReplicatedStorage.Shared.Config in Studio, then disappears after you delete it on disk.
Press Play, wait for the yard, and run the test suite from the server command bar. Press Stop when it finishes.
You should see The yard appears, Output shows only [Ids] and DataStore warnings, and the server command prints TEST PASS lines.
Open this step in lesson mode · Link to this step · This confused me
6Reading errors in Studio's Output
In Reading errors, docs and getting help (including AI as a tutor) you read errors in the browser runner, which printed a single main:2: line. Now that Studio is open, meet Studio's Output window (Window menu or the Script tab): it prints every print, warn (amber) and error (red) from both server and client scripts.
When a script throws an error during Play, Studio adds the full script path and the stack trace right below the red line:
ServerScriptService.ErrorDemo:2: attempt to perform arithmetic (mul) on nil and number
Stack Begin
Script 'ServerScriptService.ErrorDemo', Line 2 - function award
Script 'ServerScriptService.ErrorDemo', Line 5 - function onPadTouched
Script 'ServerScriptService.ErrorDemo', Line 7
Stack End
Clicking any line in that trace opens the script in Studio at that exact line. Remember Rojo's one-way rule from the step above: use the click to read where the bug landed, then make the real fix in your .luau file in VS Code so the next sync does not wipe it out.
During Play, Studio's Output prints an error in ServerScriptService.Server.CoinService, Line 48. You click the line to inspect it. Where should you edit the code to fix the bug?
Answer
In src/server/CoinService.luau in VS Code, so Rojo syncs the fix and Git tracks it. Clicking an Output error jumps straight to the line so you can inspect it. Make the real edit in src/server/CoinService.luau in VS Code so Rojo syncs it and Git keeps it.
Open this step in lesson mode · Link to this step · This confused me
7Optional: Node.js and Blender
Install these only when a lesson asks for them. Both are large and neither is needed to write or play the game.
Node.js runs the small helper scripts in the repository's scripts/ folder: the id guard (node scripts/check-ids.mjs) that CI runs, and the generator that fills mesh and texture templates with your own asset ids. The publishing and art lessons use them. Node 18 is the oldest version the scripts accept, but it no longer gets security fixes, so install the current LTS.
winget install --id OpenJS.NodeJS.LTS -e
brew install node
Check node --version against the Node.js release table. If it is outside Active LTS or Maintenance LTS, install the LTS build from the Node.js downloads page. About 110 MB. Remove with winget uninstall --id OpenJS.NodeJS.LTS or brew uninstall node.
Blender is the free 3D tool the art module uses for meshes, rigging and textures.
winget install --id BlenderFoundation.Blender -e
brew install --cask blender
Verify by opening it once; the splash screen shows the version. About 1 GB. Remove with winget uninstall --id BlenderFoundation.Blender or brew uninstall --cask blender.
Which job in Beacon Yard needs Node.js?
Answer
Running scripts/check-ids.mjs, the guard that stops real ids being committed. Node runs the helper scripts in scripts/, such as the id guard and the asset generator. Syncing is Rojo, the tests run inside Studio and formatting is StyLua.
Open this step in lesson mode · Link to this step · This confused me
8Everything you installed
Reference Install, verify, size and removal
Sizes are approximate and grow with updates. Removing the clone itself is deleting the beacon-yard folder; push your work to GitHub first.
about 1.2 GB- Verify: opens a Baseplate signed in. Remove: Settings, Apps on Windows; move to the Bin on macOS.
about 500 MB- Verify: code --version. Remove: winget uninstall --id Microsoft.VisualStudioCode, or brew uninstall --cask visual-studio-code.
about 430 MB on Windows- Verify: git --version. Remove: winget uninstall --id Git.Git, or brew uninstall git.
about 100 MB with its tools- Verify: rokit --version in a new terminal. Remove: delete the .rokit folder and its PATH entry.
8 to 25 MB each- Verify: rokit list inside the clone. Remove: they live in .rokit, so removing Rokit removes them.
under 1 MB- Verify: Rojo button on the Plugins tab. Remove: delete it from the Plugins Folder, then restart Studio.
about 25 MB- Verify: hover types in Config.luau. Remove: code --uninstall-extension JohnnyMorganz.luau-lsp.
about 110 MB- Verify: node --version. Remove: winget uninstall --id OpenJS.NodeJS.LTS, or brew uninstall node.
about 1 GB- Verify: opens with a version on the splash screen. Remove: winget uninstall --id BlenderFoundation.Blender, or brew uninstall --cask blender.
You remove Rokit by deleting its .rokit folder. What happens to rojo, stylua, selene, wally and luau-lsp?
Answer
They are gone too, because Rokit kept them inside .rokit. Rokit stores the tools and their shims in .rokit. Deleting the folder removes all of them; rokit install brings them back.
Open this step in lesson mode · Link to this step · This confused me
9How to start any Studio challenge
Earlier lessons read code from earlier tags (m00-baseplate through m13-art-pass), while Studio-graded challenges run through the Course Runner on m14-ship. Rather than editing main directly or trying to carry edits across tags, start every Studio challenge on a clean branch or worktree based on m14-ship:
- Create a clean workspace from
m14-ship. Pick either a new branch in your current clone or a separate worktree folder so your main checkout stays untouched. The examples are for thesetupchallenge, so the branch istry/setup; for another challenge, swapsetupfor that challenge's id (for exampletry/platform). Type the name as plain text, with no angle brackets:
Windows
# Option A: a fresh branch in this clone
git switch -c try/setup m14-ship
wally install
rojo build -o beacon-yard.rbxlx
rojo serve
# Option B: a separate worktree folder beside your clone
git worktree add -b try/setup ..\beacon-yard-try m14-ship
Set-Location ..\beacon-yard-try
wally install
rojo build -o beacon-yard.rbxlx
rojo serve
macOS
# Option A: a fresh branch in this clone
git switch -c try/setup m14-ship
wally install
rojo build -o beacon-yard.rbxlx
rojo serve
# Option B: a separate worktree folder beside your clone
git worktree add -b try/setup ../beacon-yard-try m14-ship
cd ../beacon-yard-try
wally install
rojo build -o beacon-yard.rbxlx
rojo serve
- Open and sync. Open the built
beacon-yard.rbxlxin Studio and press Connect in the Rojo plugin, then make the challenge edits in VS Code. - Grade in Play. Press Play, open the command bar from the Script tab (or Window menu), switch to the server or client side named in the challenge card, and run the Course Runner command it gives you (for example
game.ServerScriptService.RunGameTests:Invoke("setup")). - Paste the
BY-code. When every check printsTEST PASS, Output printsPASS CODE: BY-.... Paste that code into the challenge card, then return to your normal branch (git switch main) or remove the worktree (git worktree remove).
A module 3 lesson reads code at m04-two-sides, and its Level 3 challenge uses the Studio Course Runner. What is the cleanest way to run and grade the challenge?
Answer
Create a fresh branch or worktree from m14-ship, sync with Rojo, make the edit, run the Course Runner command and paste the BY- code. m14-ship includes the Course Runner, and a fresh branch or worktree from m14-ship lets you sync with Rojo, grade cleanly and discard or keep your work without tangling main.
Open this step in lesson mode · Link to this step · This confused me
10Challenges
Level 1, Apprentice
Challenge
Connect Rojo and prove one change travels from disk to Studio.
- Start from
- Parts 1 and 2 done
Done means
- Studio has beacon-yard.rbxlx open and the Rojo widget says Connected
- A comment saved on disk appears in Studio and is removed again
Hints
- rojo serve has to keep running in its own terminal.
- If Connect fails, check that the port in the plugin is 34872.
Play prints a warning starting with [Ids] about the Coin Pack. What does it mean?
Answer
The Coin Pack's product id is 0, so that feature is switched off until you add your own id. Every account-bound id in the repository is 0. At 0 a feature switches itself off and prints one [Ids] warning. You add your own ids later, in a file Git ignores.
Level 3, Professional
Challenge
Prove the whole chain with a test. Create src/shared/SetupCheck.luau on disk, let Rojo sync it, press Play, and run the check from the server command bar:
game.ServerScriptService.RunGameTests:Invoke("setup")
It prints TEST PASS setup_synced, TEST PASS setup_tools, and your BY- pass code. Delete SetupCheck.luau afterwards; it is a probe.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("setup")in the server command bar. Copy the pass code from Output.
Done means
- src/shared/SetupCheck.luau exists on disk and returns synced = true
- Its tools list names all five pinned tools: rojo, stylua, selene, wally and luau-lsp
- Self-check, not graded: StyLua and Selene are quiet on the new file
Hints
- src/shared becomes ReplicatedStorage.Shared, so the module appears there once Rojo syncs.
- Return a table: { synced = true, tools = { ... } }.
Solution
--!strict
return {
synced = true,
tools = { "rojo", "stylua", "selene", "wally", "luau-lsp" },
}
Before you start the project-file challenge below, you run its check on the stock game. What does it print?
Answer
TEST FAIL for both zoom limits, because the engine defaults are not 12 and 80. Every graded challenge fails on the stock game. The camera limits start at the engine defaults, so both checks fail until default.project.json sets them.
Level 3, Professional
Challenge
Camera limits are place data that every player receives. Set them in default.project.json, not from a script, rebuild or sync, then press Play and run the check from the server command bar:
game.ServerScriptService.RunGameTests:Invoke("platform")
It prints TEST PASS platform_zoom_min, TEST PASS platform_zoom_max, and your BY- pass code. Restore default.project.json afterwards with git restore default.project.json.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("platform")in the server command bar. Copy the pass code from Output.
Done means
- default.project.json sets StarterPlayer.CameraMinZoomDistance to 12
- default.project.json sets StarterPlayer.CameraMaxZoomDistance to 80
- Self-check, not graded: StarterPlayerScripts.Client still maps to src/client
Hints
- Lighting already stores ClockTime under $properties in default.project.json. Do the same for StarterPlayer.
- StarterPlayer needs "$className": "StarterPlayer" once it has $properties.
Solution
"StarterPlayer": {
"$className": "StarterPlayer",
"$properties": {
"CameraMinZoomDistance": 12,
"CameraMaxZoomDistance": 80
},
"StarterPlayerScripts": {
"Client": { "$path": "src/client" }
}
}
Open this step in lesson mode · Link to this step · This confused me
11Recap
Recap
- Run wally install, build the place with rojo build, open it, run rojo serve and press Connect; from then on every save reaches Studio.
- Rojo copies one way: edits made only inside Studio are overwritten, so read errors in Output and fix code in VS Code.
- On Play, [Ids] and unpublished-DataStore warnings are expected; red errors are not. Node.js and Blender wait until a lesson needs them.
Rojo is a photocopier from folder to Studio, until a photocopier never touches the original, and Rojo by default never copies back either: an edit typed only into Studio is overwritten by the next sync from disk.
Queued for review
- Put the first session in order.
- You close the terminal running rojo serve, then save another change to Config.luau. What happens in Studio?
- Where should a code change to Beacon Yard be made, so it is kept?
- During Play, Studio's Output prints an error in ServerScriptService.Server.CoinService, Line 48. You click the line to inspect it. Where should you edit the code to fix the bug?
Open this step in lesson mode · Link to this step · This confused me