Lesson 3 of 4

Set up your machine, part 2: Rokit, Rojo, Wally, StyLua, Selene and luau-lsp

Install Rokit on Windows or macOS, trust and install Rojo, Wally, StyLua, Selene and luau-lsp at the versions Beacon Yard pins, run wally install, add the Rojo Studio plugin, and verify the Luau language server.

Tool lesson, about 40 minutes, 9 steps

By the end you can

  • Install Rokit and use it, including the trust step, to install the five exact tool versions the game pins
  • Run wally install so packages are ready, install the Rojo plugin for Studio, and verify the Luau language server
  • Say what Rojo, Wally, StyLua, Selene and luau-lsp each do, and which alternatives teams use instead

Before this: Set up your machine, part 1: Studio, an editor and Git

Step 1 of 9

Five tools, five exact versions

Open rokit.toml in the clone from part 1. It pins five tools, and it is the reason two developers on different machines get identical results:

[tools]
rojo = "rojo-rbx/rojo@7.5.1"
stylua = "JohnnyMorganz/StyLua@2.1.0"
selene = "Kampfkarren/selene@0.32.0"
wally = "UpliftGames/wally@0.3.2"
luau-lsp = "JohnnyMorganz/luau-lsp@1.70.1"
Both sidesA toolchain file (rokit.toml) is a shared shopping list with exact brand and version numbers.
In the pictureIn Roblox
The shopping listrokit.toml, committed to Git
The shopper who fetches exact versionsrokit install
Signing off on each supplierrokit trust for each GitHub repository

See the whole analogy cast

Each line names a tool, the GitHub repository it comes from, and an exact version. rojo = "rojo-rbx/rojo@7.5.1" means "Rojo, version 7.5.1, from the rojo-rbx/rojo repository". Nobody on the team runs "whatever is newest". When the team decides to upgrade, someone changes this file in a reviewed commit, and everyone gets the new version together.

Think of it as A shared shopping list with exact brand and version numbers

The program that reads this file and installs the tools is RokitRokitA toolchain manager that installs the exact command-line tool versions a project pins in rokit.toml.Think of it as a shared shopping list that every machine fills the same way.1, a community toolchain manager maintained under the same GitHub organisation as Rojo.

Choose one

A teammate formats a file with StyLua 2.2 and you check it with StyLua 2.1. CI uses 2.1. What is the most likely result?

A teammate formats a file with StyLua 2.2 and you check it with StyLua 2.1. CI uses 2.1. What is the most likely result?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 2 of 9

Install Rokit

powershell
# Windows, in PowerShell
Invoke-RestMethod https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.ps1 | Invoke-Expression
bash
# macOS (and Linux), in Terminal
curl -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | bash

Both scripts download the latest release and run rokit self-install, which creates a .rokit folder in your home folder and adds .rokit/bin to your PATH. If you would rather not pipe a script from the internet into your shell, download the zip for your system from the Rokit releases page, unzip it, and run rokit self-install from that folder yourself. Reading a script before you run it is a good habit.

Verify. Open a new terminal and run rokit --version. A terminal that was already open still has the old PATH and says Rokit is not found.

Size. Rokit and the five pinned tools together take about 100 MB in .rokit.

Remove. Rokit has no uninstall command. Delete the .rokit folder in your home folder, then remove its bin entry from PATH: on Windows, Start, "Edit environment variables for your account", Path; on macOS, the line mentioning .rokit in your shell profile (~/.zshenv, ~/.zshrc or ~/.profile).

Choose one

The Rokit installer finished without errors, but rokit --version in the same window says the command is not found. What do you do?

The Rokit installer finished without errors, but rokit --version in the same window says the command is not found. What do you do?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 3 of 9

Trust, then install

Rokit downloads programs from GitHub and runs them on your machine, so it asks before it trusts a tool it has not seen. Inside the clone:

bash
cd ~/Code/beacon-yard
rokit install

In a normal terminal, Rokit lists each tool and asks whether to trust it. Answer yes for all five in rokit.toml. Some terminals cannot show a question (an editor's task runner, a script, CI). There the install fails with a line such as ERROR The following tool has not been marked as trusted: Kampfkarren/selene, and nothing changes. Mark all five trusted explicitly, then install again:

bash
rokit trust rojo-rbx/rojo JohnnyMorganz/StyLua Kampfkarren/selene UpliftGames/wally JohnnyMorganz/luau-lsp
rokit install

Verify. rokit list shows all five pins, and each tool answers from inside the clone:

bash
rokit list
rojo --version      # Rojo 7.5.1
stylua --version    # stylua 2.1.0
selene --version    # selene 0.32.0
wally --version     # wally 0.3.2
luau-lsp --version  # 1.70.1

Rokit's shims look for a rokit.toml in the current folder or above it. Run these from inside beacon-yard; from your home folder the tools may not be found, or a different version may answer.

Both sidesRemember: A toolchain file (rokit.toml) is a shared shopping list with exact brand and version numbers.

Terminal
A terminal inside the beacon-yard folder after rokit list, showing luau-lsp 1.70.1, rojo 7.5.1, selene 0.32.0, stylua 2.1.0 and wally 0.3.2.

Select a numbered pin, or a row below, to read what it marks.

rokit list inside the clone. Five tools, five exact versions.

Choose one

You run rokit install from a script or editor task runner and it stops with: ERROR The following tool has not been marked as trusted: Kampfkarren/selene. What is the fix?

You run rokit install from a script or editor task runner and it stops with: ERROR The following tool has not been marked as trusted: Kampfkarren/selene. What is the fix?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 4 of 9

What you just installed

  • RojoRojoA tool that syncs files on your disk into Roblox Studio.Think of it as a photocopier from your folder to Studio. turns the repository into a place. rojo build writes a place file; rojo serve runs a small local server that the Studio plugin connects to, and keeps Studio in step with your files.
  • WallyWallyA package manager for Roblox: wally.toml lists libraries, wally install downloads them into Packages.Think of it as npm or pip for Luau libraries. is a package manager. wally.toml lists the libraries Beacon Yard depends on (React, ReactRoblox, ProfileStore, Jest and JestGlobals), and wally install downloads them into Packages/, ServerPackages/ and DevPackages/. Run wally install before building so default.project.json can mount Packages/ and ServerPackages/. The Jest test project, test.project.json, uses DevPackages/.
  • StyLuaStyLuaA code formatter for Lua and Luau.Think of it as a house style applied by machine. formats Luau the same way for everyone. stylua --check . reports files that would change without changing them.
  • SeleneSeleneA linter for Lua and Luau that warns about likely mistakes.Think of it as a proofreader for code. is a linter: it reads code and warns about likely mistakes, such as a variable you never use. selene src tests checks the game.
  • luau-lspluau-lspThe Luau language server: autocomplete, hover docs and type errors in an external editor.Think of it as studio's script editor smarts, inside VS Code. (the command-line binary) type-checks your Luau files from the terminal and in CI.

CI runs the same commands on every push, so a file that passes on your machine passes there.

Both sidesRojo is a photocopier from folder to Studio.
In the pictureIn Roblox
The original pagesThe .luau files and project file in the repository
The photocopierrojo serve plus the Studio plugin
The copiesThe scripts and instances in the open place

See the whole analogy cast

Rojo is a photocopier pointed from your folder at Studio. Change a page in the folder and a fresh copy lands in Studio. The original stays in the folder.

Think of it as A photocopier from folder to Studio

Match the pairs

Match each command to what it does.

Link to this step · This confused me

Step 5 of 9

The Rojo plugin for Studio

rojo serve is only half of the connection. The other half is a Studio plugin. Rojo can install the plugin that matches its own version:

bash
rojo plugin install

That writes the plugin into Studio's local plugins folder. Studio loads plugins when it starts, so close and reopen Studio. The Plugins tab now has a Rojo button. You can also install the Rojo plugin from the Creator Store, or download it from Rojo's GitHub releases2; whichever you use, keep its major version the same as the command-line tool.

Remove. In Studio, Plugins tab, Plugins Folder opens the folder; delete the Rojo file there and restart Studio. A Creator Store copy is removed from Manage Plugins.

Getting files into Studio

OptionWhat it isWhen pros pick itTrade-offs
RojoCommunity tool: a project file maps folders to the data model, rojo serve syncs files into Studio, rojo build makes place files.Most professional and open-source Roblox codebases; anything that wants the whole project, not only scripts, in Git and CI.One-way by default, a plugin to keep connected, and a project file to learn.
ArgonCommunity tool with a CLI, a VS Code extension and a Studio plugin; syncs code and other instances both ways.Developers who want two-way sync and a friendlier first run, and who accept a smaller community.Fewer teams and tutorials use it than Rojo; check its project format before you mix it into a Rojo repository.
Studio Script SyncBuilt into Studio and fully released in 2026: syncs scripts and folders to files on disk, both ways, and works in Team Create.Studio-first teams who want Git and an external editor for scripts without a third-party tool.Scripts and folders only. Models, terrain and properties stay in the place, so CI cannot rebuild the place from files.

Beacon Yard uses Rojo because its project file also sets lighting, gravity and material variants, and CI builds the whole place from the repository. Roblox's own docs draw the same line: Script Sync for scripts in a Studio-native workflow, third-party tools such as Rojo when the file system is the source of truth for the project3.

Choose one

You ran rojo plugin install while Studio was open. The Plugins tab has no Rojo button. What is the fix?

You ran rojo plugin install while Studio was open. The Plugins tab has no Rojo button. What is the fix?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 6 of 9

Connect the Luau language server to the project

You already installed the Luau Language Server VS Code extension (JohnnyMorganz.luau-lsp) in A code editor from zero: VS Code and Cursor 4. (If you skipped module -1, install it once with code --install-extension JohnnyMorganz.luau-lsp.)

Inside Beacon Yard, .vscode/settings.json adds the piece that was missing back in your practice folder: a sourcemap. The extension asks Rojo to describe the tree in default.project.json, so require(script.Remotes) resolves to the exact module Studio will run. That needs Rojo 7.3 or newer; the pin is 7.5.1.

Verify. Open beacon-yard in VS Code and open src/shared/Config.luau. Its first line is --!strict. Hover over ROUND_SECONDS and a tooltip shows its type. Add a line local check: number = "forty" under the first line and a red underline appears at once, before Studio is even open. Delete the line.

Size. About 25 MB. Remove. code --uninstall-extension JohnnyMorganz.luau-lsp.

Choose one

luau-lsp is installed and shows no errors, but your change does not appear in Studio. Which tool is missing?

luau-lsp is installed and shows no errors, but your change does not appear in Studio. Which tool is missing?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 7 of 9

Where the shopping-list picture breaks

Where does it break?“A shared shopping list with exact brand and version numbers” is a good picture of a toolchain file (rokit.toml). Where does it stop being true?

It breaks here. Rokit's shims only read rokit.toml inside the project folder or below it; run a tool from your home folder, or skip trusting a repository, and the tool refuses to run.

The true model. Rokit installs versioned binaries into ~/.rokit and resolves which version to run by walking upward from the current working directory to find rokit.toml.

Choose one

You installed Rojo with Rokit inside beacon-yard, then open a new terminal in your home folder and run rojo --version. Why does Rokit refuse to run it?

You installed Rojo with Rokit inside beacon-yard, then open a new terminal in your home folder and run rojo --version. Why does Rokit refuse to run it?

Press 1 to 4 to choose, Enter to check.

Build along

m14-ship

  • rokit.toml
  • wally.toml
  • .vscode/settings.json
  1. Inside the clone, trust and install the five tools, then run rokit list.

    You should see rokit list shows luau-lsp 1.70.1, rojo 7.5.1, selene 0.32.0, stylua 2.1.0 and wally 0.3.2.

  2. Run wally install, then stylua --check . and selene src tests.

    You should see Packages, ServerPackages and DevPackages appear in the clone, and stylua and selene end with 0 errors.

  3. Run rojo plugin install, then close and reopen Studio.

    You should see A Rojo button appears on Studio's Plugins tab.

  4. Open beacon-yard in VS Code and check src/shared/Config.luau to confirm the Luau Language Server sees the project.

    You should see Hovering ROUND_SECONDS in src/shared/Config.luau shows a type tooltip.

Link to this step · This confused me

Step 8 of 9

Challenges

Level 1, Apprentice

Challenge

Install the five pinned tools, fetch the Wally packages, and confirm each version.

Start from
Rokit installed, inside the beacon-yard clone

Done means

  • rokit list shows all five pinned versions
  • rojo --version prints Rojo 7.5.1 and luau-lsp --version prints 1.70.1 from inside the clone
  • wally install succeeds and populates Packages and ServerPackages

Meet the criteria above, then record your own result. No test grades this check.

Choose one

A toast in Studio says a newer Rojo is available. The repository pins 7.5.1. What do you do?

A toast in Studio says a newer Rojo is available. The repository pins 7.5.1. What do you do?

Press 1 to 4 to choose, Enter to check.

Level 2, Builder

Challenge

Break the formatting of one line in Config.luau, watch stylua --check . catch it, let stylua fix it, and leave the repository clean.

Start from
The five tools installed

Done means

  • stylua --check . reports a file you deliberately misformatted
  • stylua on that file fixes it
  • git status shows no changes when you are done

Meet the criteria above, then record your own result. No test grades this check.

Link to this step · This confused me

Step 9 of 9

Recap

Retiring the analogy

You no longer need “a shared shopping list with exact brand and version numbers”. Rokit installs versioned binaries into ~/.rokit and resolves which version to run by walking upward from the current working directory to find rokit.toml.

Recap

  1. rokit.toml pins five exact tool versions (Rojo, StyLua, Selene, Wally and luau-lsp); Rokit installs them after you trust each repository, and the shims only work inside a folder with a rokit.toml above it.
  2. Run wally install before rojo build so Packages and ServerPackages exist on disk; Rojo needs both the CLI and a matching Studio plugin.
  3. StyLua formats, Selene lints, Wally fetches packages and luau-lsp checks types; only Rojo copies files into Studio.

A toolchain file (rokit.toml) is a shared shopping list with exact brand and version numbers, until rokit's shims only read rokit.toml inside the project folder or below it; run a tool from your home folder, or skip trusting a repository, and the tool refuses to run.

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.

Next Set up your machine, part 3: connect, play, and the optional extras

Link to this step · This confused me