Lesson 4 of 8
The toolchain: Rokit, Wally, pesde, StyLua, Selene, luau-lsp
Pin and use the tools around a Roblox project. Rokit installs exact versions, Wally installs libraries, StyLua formats, Selene lints and luau-lsp type-checks, with pesde as the alternative package manager and real output from Beacon Yard's repo.
By the end you can
- Read rokit.toml, wally.toml and stylua.toml, and say what each tool does and what it never does
- Run stylua --check, selene and wally install on Beacon Yard, and read their exit codes
- Compare Wally with pesde, and say what luau-lsp needs from Rojo
Before this: Rojo and Git day to day
1Using the pinned tools every day
You already installed Rokit and Beacon Yard's pinned tools in Setup. Now use them as your daily check loop: format, lint, type-check and build before every commit.
Open rokit.toml. At m13-art-pass it pins four tools (at m14-ship it adds a fifth, luau-lsp). Every machine and every CI run installs these exact pins. Below are the course's pins beside the latest GitHub releases checked on 2026-11-23, plus Rokit's command list:
Evidence, figure 1.1toolchain-versions.log
# Tool pins and newest releases, read on 2026-11-23
$ cat rokit.toml (at m13-art-pass)
[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"
# Newest release of each tool, from the GitHub API
rojo-rbx/rojo v7.7.1 2026-10-02
JohnnyMorganz/StyLua v2.6.0 2026-10-10
Kampfkarren/selene 0.32.0 2026-10-01
UpliftGames/wally v0.3.2 2023-06-05
rojo-rbx/rokit v1.2.0 2025-09-30
$ rokit --help
Next-generation toolchain manager for Roblox projects
Usage: rokit.exe [OPTIONS] [COMMAND]
Commands:
add Adds a new tool to Rokit and installs it
authenticate Authenticate with an artifact provider, such as GitHub
init Initializes a new Rokit project in the current directory
install Installs all project-specific tools
list Lists all existing tools managed by Rokit
self-install Installs / re-installs Rokit, and updates all tool links
self-update Updates Rokit to the latest version
system-info Prints out information about the current system and installed tools
trust Mark the given tool(s) as being trusted
update Updates all tools, or specific tools, to the latest version
help Print this message or the help of the given subcommand(s)
Options:
-v, --verbose...
-h, --help Print help
-V, --version Print version

Select a numbered pin, or a row below, to read what it marks.
The same four tools on every machine.
Notice the honest gap: this course pins Rojo 7.5.1 (latest release v7.7.1, 2 Oct 2026) and StyLua 2.1.0 (latest release v2.6.0, 10 Oct 2026) so every milestone tag builds identically, while Selene (0.32.0), Wally (0.3.2) and luau-lsp (1.70.1 at m14-ship) match their latest releases.
| In the picture | In Roblox |
|---|---|
| The painted outline of each tool | A line in rokit.toml: the tool and its exact version |
| Checking the board when you open the shop | rokit install on every machine and in CI |
| A tool that is missing or the wrong size | A tool that is not installed, or an older version than the pin |
A shadow board is a toolbox wall with each tool's outline painted on it. You see at a glance which tool is missing, and which is the wrong size.
Think of it as A shadow board: each tool's outline is painted on the wall
Quick recap from Setup: match each Rokit command in the log above to what it does.
Answer
rokit install: Install every tool in rokit.toml at its pinned version; rokit add: Pin a new tool and install it; rokit trust: Mark a tool's source as trusted; rokit update: Move pins to the latest version. install follows the file, add changes it, trust approves a source before it runs, and update moves the pins forward.
Open this step in lesson mode · Link to this step · This confused me
2How to bump a pin cleanly
Pins stay behind the latest release on purpose until a teammate tests the upgrade. Raising a pin is its own small branch and commit, never mixed into a gameplay change. A newer StyLua can reformat dozens of files, and burying a gameplay fix inside a 30-file whitespace diff makes review impossible.
Here is the safe loop when you want to move Rojo from 7.5.1 to 7.7.1 (to gain rojo syncback) or StyLua from 2.1.0 to 2.6.0:
- Create a branch just for the upgrade, such as
chore/bump-stylua. - Edit one line in
rokit.toml(or runrokit update stylua), then runrokit install. - Run the tool across the repo (
stylua --check .,selene src tests,rojo build). If the new StyLua reformats files, runstylua .and inspectgit diff --stat. - Commit the
rokit.tomlchange and any reformat together as one focused commit, with zero gameplay edits.
Ways to manage pinned tool versions
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Rokit | A toolchain manager for Roblox projects, compatible with the older Foreman and Aftman. | Most Roblox repos. Roblox's own Rojo page uses it in its examples, and Beacon Yard's CI installs it with setup-rokit. | Another tool to install first. A tool must be trusted once before Rokit will run it. |
| Download each binary by hand | Fetch a release from GitHub and put it on your PATH. | A one-off try of a tool. | Every teammate ends up with a different version, which is the problem a manager solves. |
| mise | A general toolchain manager for many languages; pesde's README recommends it for installing pesde. | Projects that mix Roblox tools with other languages. | Not Roblox-specific, so fewer Roblox examples. |
Read the log above. Which two tools pinned at m13-art-pass are behind their latest GitHub releases?
Answer
Rojo (7.5.1 vs v7.7.1) and StyLua (2.1.0 vs v2.6.0). Beacon Yard pins Rojo 7.5.1 (latest v7.7.1) and StyLua 2.1.0 (latest v2.6.0). Selene 0.32.0 and Wally 0.3.2 already match their latest releases.
Open this step in lesson mode · Link to this step · This confused me
3StyLua formats, and fails the check
StyLuaStyLuaA code formatter for Lua and Luau.Think of it as a house style applied by machine. reprints your Luau in one fixed style1, so nobody argues about tabs or line length. Beacon Yard's choices are in stylua.toml:
column_width = 120
line_endings = "Unix"
indent_type = "Tabs"
indent_width = 4
quote_style = "AutoPreferDouble"
call_parentheses = "Always"
collapse_simple_statement = "Never"
stylua --check . changes nothing. It exits 0 if every file already matches the reprint, and 1 if any would change. That exit code is what CI reads. Here it is on a clean checkout of m13-art-pass:
Evidence, figure 3.2ci-checks.log
$ stylua --check .
exit 0
What column width does stylua.toml set for Beacon Yard?
Answer
120 columns. column_width is 120. A line longer than that is wrapped by StyLua, which is why a long string or call in the repo is stacked over several lines.
Open this step in lesson mode · Link to this step · This confused me
4Selene lints, and is not the test suite
SeleneSeleneA linter for Lua and Luau that warns about likely mistakes.Think of it as a proofreader for code. reads your code and warns about likely mistakes, such as a variable that is never used2. selene.toml says which standard library to trust (std = "roblox"). Here Selene finds an unused variable in a probe file, as the CI challenge asks you to try, and then goes quiet when the file is gone:
Evidence, figure 4.1selene-probe.log
$ selene src
warning[unused_variable]: forgotten is assigned a value, but never used
┌─ src\server\SeleneProbe.luau:6:8
│
6 │ local forgotten = 1
│ ^^^^^^^^^
exit 1
With std = "roblox", Selene automatically generates its Roblox standard library and refreshes it every six hours3. You can force a refresh with selene update-roblox-std, or freeze a local roblox.yml file with selene generate-roblox-std (or set roblox-std-source = "pinned") if you want offline or deterministic CI runs. When Roblox ships a brand-new API before your pinned or cached definition updates, refreshing the standard library brings Selene back in step.
The probe file has `local forgotten = 1` and nothing else uses it. What does selene src print, and what exit code does CI see?
Answer
A warning that forgotten is assigned a value but never used, and exit 1. Selene reports warning[unused_variable] and exits 1, so CI's lint job fails until the file is fixed. Selene is a linter: it reads files and never runs the game.
Open this step in lesson mode · Link to this step · This confused me
5Wally and pesde install libraries
Rokit pins programs. 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. pins Luau libraries. At m13-art-pass, Beacon Yard's wally.toml lists React-lua under [dependencies] and ProfileStore under [server-dependencies]:
[dependencies]
React = "jsdotlua/react@17.2.1"
ReactRoblox = "jsdotlua/react-roblox@17.2.1"
# ProfileStore is a server-realm package, so it goes here and installs to
# ServerPackages/. Rojo maps that folder into ServerScriptService.
[server-dependencies]
ProfileStore = "lm-loleris/profilestore@1.0.3"
A package belongs to a realm. The default [dependencies] block installs to Packages/, which Rojo maps into ReplicatedStorage for shared use, while [server-dependencies] installs to ServerPackages/, which the project file maps under ServerScriptService so clients never receive it4. wally install writes the packages and a wally.lock. Commit the lock file, not the folders. This is the command in the same clean checkout:
Evidence, figure 5.2ci-checks.log
$ wally install
[INFO ] Updating package index https://github.com/UpliftGames/wally-index...
[INFO ] Downloaded 18 packages!
exit 0
CLAUDE.md
CONTRIBUTING.md
LICENSE
LICENSE-ART.md
MILESTONES.md
Packages
README.md
ServerPackages
ProfileStore is lm-loleris/profilestore version 1.0.3, published from its GitHub repository5. pesde reads Wally dependencies too, and its docs say to use them only in Roblox projects6, while its README describes it as a package manager for Luau7. Roblox lists the community tools you will meet, with links, on one page8.
Package managers for Luau
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Wally | A package manager for Roblox with its own registry and a wally.toml, in the shape of Cargo and npm. | Beacon Yard and most Roblox projects. Roblox's file-workflow page lists Wally among the community tools, and does not list pesde. | Its newest release is from June 2023, so it moves slowly. |
| pesde | A package manager for Luau, built to avoid lock-in to one runtime. Its dependency guide covers Wally packages too. | Projects that want multiple runtimes, or typed package links, and teams happy to adopt a newer tool. | Another tool and registry to learn. Its docs say Wally dependencies should be used only in Roblox projects. |
| Copy the module in | Paste a library's source into src/ and commit it. | A tiny single-file helper you never plan to update. | No version number, no update path, and you now own its bugs. |
ProfileStore is listed under [server-dependencies]. Where does Wally put it, and what stops clients from receiving it?
Answer
In ServerPackages/, which the project file maps under ServerScriptService. Server-realm packages install to ServerPackages/, and default.project.json maps that folder under ServerScriptService, which is never sent to players.
Open this step in lesson mode · Link to this step · This confused me
6luau-lsp, and what it needs from Rojo
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. is the language server: it gives autocomplete, hover docs and type errors in VS Code. To understand game.ReplicatedStorage.Shared, it reads a sourcemap, a small JSON description of the tree that Rojo writes. The repo's editor settings turn that on:
"luau-lsp.sourcemap.enabled": true,
"luau-lsp.sourcemap.autogenerate": true,
"luau-lsp.sourcemap.rojoProjectFile": "default.project.json"

Select a numbered pin, or a row below, to read what it marks.
The language server reads Rojo's sourcemap.
.luaurc sets every file to strict mode and defines aliases for the four source folders:
"languageMode": "strict",
"aliases": {
"Shared": "src/shared",
"Server": "src/server",
"Client": "src/client",
"Loading": "src/loading"
What does .luaurc's "languageMode": "strict" do for the Beacon Yard repo?
Answer
Opts every file into strict type checking, the same as --!strict at the top of a file. languageMode sets the default mode for the project, and each file can still say so itself. Only the type checker uses it: Studio runs untyped code the same.
The same tool runs without an editor: luau-lsp analyze type-checks the project from the command line so CI can block a pull request on a type error9. Starting at m14-ship, Beacon Yard pins luau-lsp = "JohnnyMorganz/luau-lsp@1.70.1" in rokit.toml and runs scripts/typecheck.sh in CI's types job:
rojo sourcemap default.project.json -o sourcemap.json
"$lsp" analyze \
--sourcemap sourcemap.json \
--definitions="$types" \
--base-luaurc .luaurc \
src tests
Why does scripts/typecheck.sh run rojo sourcemap right before luau-lsp analyze?
Answer
So luau-lsp knows how folders like src/shared map to DataModel paths such as game.ReplicatedStorage.Shared. Without the sourcemap, luau-lsp cannot resolve Roblox DataModel require paths like ReplicatedStorage.Shared or ServerPackages.
Open this step in lesson mode · Link to this step · This confused me
7Where the shadow board picture breaks
Both sidesRemember: Pinned tool versions is a shadow board: each tool's outline is painted on the wall.
The outline on a shadow board shows which tool belongs there. Ask what it cannot tell you before you open the breakdown.
Where does it break?“A shadow board: each tool's outline is painted on the wall” is a good picture of pinned tool versions. Where does it stop being true?
It breaks here. The board shows every teammate holds the same pinned version, not that the tool or its API data is current: pinned Rojo 7.5.1 lacks rojo syncback from 7.7, and a pinned Selene standard library misses newer Roblox APIs until you refresh it.
The true model. A pin guarantees reproducibility across machines and CI. It does not guarantee freshness: when you need a newer command or updated Roblox API definitions, bump one pin on its own branch or refresh the standard library.
rokit.toml pins Rojo 7.5.1 and Selene 0.32.0, and rokit install succeeds cleanly. Yet `rojo syncback` fails and a pinned Selene standard library can miss a newly added Roblox API. What is the lesson?
Answer
A pin guarantees every machine gets the same version, not that the tool or its bundled API data is up to date with newer features. The shadow board promises every teammate holds the exact same tool version. It does not keep that version current: you still have to bump pins deliberately and refresh API definitions when the platform moves.
Open this step in lesson mode · Link to this step · This confused me
8Build it: run the daily loop and test a pin bump
Build along
rokit.toml
In your existing Beacon Yard clone, run
stylua --check .from the repo root.You should see stylua --check . prints nothing and exits 0.
Run
selene src tests.You should see Selene prints 0 errors, 0 warnings and 0 parse errors.
Run
wally install, thengit status.You should see wally install downloads the packages (18 at m13-art-pass) and creates Packages/ and ServerPackages/, neither listed by git status.
Create
src/server/SeleneProbe.luauwithlocal forgotten = 1inside a function that returns 0. Runselene src, then delete the file and run it again.You should see Selene prints warning[unused_variable] for forgotten, and the exit code is 1; after deleting the file it is 0 again.
Practise a pin bump: create branch
chore/try-rojo-77, changerojoinrokit.tomlto"rojo-rbx/rojo@7.7.1", runrokit install, thenrojo syncback --help. Discard the experiment afterwards:git checkout -- rokit.tomlrestores the 7.5.1 pin,rokit installreinstalls the pinned tools, andgit switch -takes you back to the branch you came from. Then delete the test branch withgit branch -D chore/try-rojo-77. Capital-Dis needed because the branch was never merged. It throws away the branch's commits, which is what you want for a throwaway test.You should see On a temporary branch, bumping Rojo to 7.7.1 and running rokit install makes rojo --version print 7.7.1 and rojo syncback --help work; switching back restores 7.5.1.
Open this step in lesson mode · Link to this step · This confused me
9Challenges
Level 1, Apprentice
Challenge
Read rokit.toml and say what each tool does in one line.
- Start from
- The game at milestone m13 (download)
Done means
- You named the four pinned tools and their versions without opening a terminal
- You said which pins are behind their newest release
Hints
- rokit.toml is four lines.
- The version log lists the newest releases.
Level 2, Builder
Challenge
Check one file with StyLua, and decide how you would commit a format change.
- Start from
- The game at milestone m13 (download)
Done means
- You ran stylua --check on one file and got its exit code
- You changed nothing, or you formatted in a commit by itself
Hints
- Exit 0 means the file already matches; 1 means StyLua would change it.
- A formatting commit should not carry a gameplay change.
StyLua would reformat 30 files after you raise its pin. How do you commit that?
Answer
As a commit of its own, apart from any gameplay change. A format commit is pure whitespace and wrapping. Buried under a gameplay change, it hides the line that matters.
Level 3, Professional
Challenge
Install a package and use it. This is the game's own challenge, challenges/toolchain.luau. It starts from m03-coins-count, but you can do it on a later checkout: the path mapping is the same idea as ServerPackages.
- Start from
- The game at milestone m03 (download)
- Grade it
- To grade work from an earlier milestone, apply your challenge changes to a checkout based on
m14-ship, which includes the Course Runner. In Studio, press Play, then rungame.ServerScriptService.RunGameTests:Invoke("toolchain", "toolchain-promise")in the server command bar. Copy the pass code from Output.
Done means
- ReplicatedStorage.Packages.Promise is a ModuleScript from the Wally package evaera/promise at 4.0.0
- Shared.WallyProbe.tag() returns promise
- The test prints TEST PASS for wally_promise_present, wally_probe_present and wally_probe_tag
Hints
- wally install writes Packages and a lock file, but Rojo needs a $path for that folder or Studio never sees Promise.
- The module checks that Promise.new and Promise.resolve are functions.
- The manifest lines, the project snippet and the module are in challenges/solutions/toolchain.md.
After wally install, which of these should you commit?
Answer
wally.toml and wally.lock. The manifest and the lock file record what to install. The folders can be regenerated, so .gitignore leaves them out.
Open this step in lesson mode · Link to this step · This confused me
10Recap
Retiring the analogy
You no longer need “a shadow board: each tool's outline is painted on the wall”. A pin guarantees reproducibility across machines and CI. It does not guarantee freshness: when you need a newer command or updated Roblox API definitions, bump one pin on its own branch or refresh the standard library.
Recap
- rokit.toml pins exact tool versions (Rojo 7.5.1 and StyLua 2.1.0 at m13-art-pass, plus luau-lsp at m14-ship). Raising a pin is its own focused commit.
- StyLua and Selene read files and report with an exit code; neither runs the game. Selene refreshes its Roblox standard library every six hours or when you run update-roblox-std.
- Wally installs libraries by realm and commits wally.lock; pesde is the newer alternative; luau-lsp needs a Rojo sourcemap and runs in CI from m14-ship.
Pinned tool versions is a shadow board: each tool's outline is painted on the wall, until the board shows every teammate holds the same pinned version, not that the tool or its API data is current: pinned Rojo 7.5.1 lacks rojo syncback from 7.7, and a pinned Selene standard library misses newer Roblox APIs until you refresh it.
Queued for review
- Read the log above. Which two tools pinned at m13-art-pass are behind their latest GitHub releases?
- The probe file has `local forgotten = 1` and nothing else uses it. What does selene src print, and what exit code does CI see?
- ProfileStore is listed under [server-dependencies]. Where does Wally put it, and what stops clients from receiving it?
Open this step in lesson mode · Link to this step · This confused me