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

1Five 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"
Figure 1.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.

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?

  1. Small formatting differences make the format check fail on files nobody meant to change
  2. Nothing; formatters never change between versions
  3. Studio refuses to open the place
  4. Rojo stops syncing the formatted files
Answer

Small formatting differences make the format check fail on files nobody meant to change. Different formatter versions can disagree about spacing or line breaks. Pinning one version in rokit.toml means every machine and CI format the same way.

Open this step in lesson mode · Link to this step · This confused me

2Install 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).

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

  1. Open a new terminal window and try again
  2. Run the installer a second time
  3. Restart the computer and reinstall Studio
  4. Copy rokit.exe into the beacon-yard folder
Answer

Open a new terminal window and try again. self-install changed PATH for new terminals. The window that ran it started before the change.

Open this step in lesson mode · Link to this step · This confused me

3Trust, 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.

Figure 3.1.

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

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?

  1. Run rokit trust for all five repositories in rokit.toml, then run rokit install again
  2. Delete rokit.toml so Rokit skips the trust check
  3. Install Selene into Roblox Studio's plugins folder instead
  4. Run rokit self-install a second time
Answer

Run rokit trust for all five repositories in rokit.toml, then run rokit install again. Without an interactive terminal to ask in, Rokit refuses untrusted tools. Running rokit trust with all five repositories first lets rokit install run cleanly.

Open this step in lesson mode · Link to this step · This confused me

4What 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 each command to what it does.

  1. rojo serve
  2. wally install
  3. stylua --check .
  4. selene src tests
Answer

rojo serve: Keeps Studio in step with the files while the plugin is connected; wally install: Downloads the libraries listed in wally.toml into Packages; stylua --check .: Reports files whose formatting differs from the rules; selene src tests: Warns about likely mistakes in the code. Rojo syncs, Wally fetches packages, StyLua checks formatting and Selene lints.

Open this step in lesson mode · Link to this step · This confused me

5The 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.

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

  1. Close Studio and open it again, so it loads plugins at startup
  2. Run rokit install again
  3. Reinstall Studio
  4. Run rojo serve with a different port
Answer

Close Studio and open it again, so it loads plugins at startup. Studio loads local plugins when it starts. The file is in place; a restart picks it up.

Open this step in lesson mode · Link to this step · This confused me

6Connect 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.

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

  1. Rojo, connected through the Studio plugin
  2. luau-lsp itself; it should copy files to Studio
  3. StyLua
  4. Wally
Answer

Rojo, connected through the Studio plugin. luau-lsp only checks code in the editor. Rojo, with the plugin connected, is what copies files into Studio.

Open this step in lesson mode · Link to this step · This confused me

7Where 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.

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?

  1. Rokit resolves pinned versions by walking upward from the current folder for rokit.toml, and your home folder has none
  2. Rokit uninstalls every tool when you close the terminal
  3. Rojo only runs while Roblox Studio is open
  4. Rokit requires you to run rokit trust in every new terminal
Answer

Rokit resolves pinned versions by walking upward from the current folder for rokit.toml, and your home folder has none. Rokit keeps versioned binaries in ~/.rokit and walks upward from the current working directory to find rokit.toml. Outside a project with rokit.toml (or before you trust its repositories), the shim has no pinned version to run.

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.

Open this step in lesson mode · Link to this step · This confused me

8Challenges

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

Hints

  1. If a tool is not trusted, run rokit trust with all five repositories, then rokit install.
  2. Open a new terminal if rokit itself is not found.

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

  1. Keep 7.5.1; upgrading is a team decision made by changing rokit.toml in a reviewed commit
  2. Upgrade only the Studio plugin and leave the CLI
  3. Install the newest Rojo globally so every project uses it
  4. Delete rokit.toml so Rokit picks the newest version
Answer

Keep 7.5.1; upgrading is a team decision made by changing rokit.toml in a reviewed commit. The pin keeps every machine and CI on the same version. An upgrade is a change to rokit.toml that the whole team reviews and adopts together.

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

Hints

  1. Add a few extra spaces inside a line of src/shared/Config.luau.
  2. git diff shows what StyLua changed; git restore src/shared/Config.luau restores the original.

Open this step in lesson mode · Link to this step · This confused me

9Recap

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

Open this step in lesson mode · Link to this step · This confused me