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.

Tool lesson, about 70 minutes, 10 steps

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

Step 1 of 10

Using 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:

Evidencetoolchain-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
Terminal
A PowerShell window: rokit install links 4 tools, then rojo 7.5.1, stylua 2.1.0, selene 0.32.0 and wally 0.3.2, a silent stylua --check, and selene src tests reporting 0 errors, 0 warnings and 0 parse errors.

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.

Both sidesPinned tool versions is a shadow board: each tool's outline is painted on the wall.
In the pictureIn Roblox
The painted outline of each toolA line in rokit.toml: the tool and its exact version
Checking the board when you open the shoprokit install on every machine and in CI
A tool that is missing or the wrong sizeA tool that is not installed, or an older version than the pin

See the whole analogy cast

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

Match the pairs

Quick recap from Setup: match each Rokit command in the log above to what it does.

Link to this step · This confused me

Step 2 of 10

How 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:

  1. Create a branch just for the upgrade, such as chore/bump-stylua.
  2. Edit one line in rokit.toml (or run rokit update stylua), then run rokit install.
  3. Run the tool across the repo (stylua --check ., selene src tests, rojo build). If the new StyLua reformats files, run stylua . and inspect git diff --stat.
  4. Commit the rokit.toml change and any reformat together as one focused commit, with zero gameplay edits.

Ways to manage pinned tool versions

OptionWhat it isWhen pros pick itTrade-offs
RokitA 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 handFetch 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.
miseA 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.
Choose one

Read the log above. Which two tools pinned at m13-art-pass are behind their latest GitHub releases?

Read the log above. Which two tools pinned at m13-art-pass are behind their latest GitHub releases?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 3 of 10

StyLua 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:

Evidenceci-checks.log
Work it out

What column width does stylua.toml set for Beacon Yard?

columns

Link to this step · This confused me

Step 4 of 10

Selene 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:

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

Choose one

The probe file has `local forgotten = 1` and nothing else uses it. What does selene src print, and what exit code does CI see?

The probe file has `local forgotten = 1` and nothing else uses it. What does selene src print, and what exit code does CI see?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 5 of 10

Wally 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:

Evidenceci-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

OptionWhat it isWhen pros pick itTrade-offs
WallyA 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.
pesdeA 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 inPaste 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.
Choose one

ProfileStore is listed under [server-dependencies]. Where does Wally put it, and what stops clients from receiving it?

ProfileStore is listed under [server-dependencies]. Where does Wally put it, and what stops clients from receiving it?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 6 of 10

luau-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"
VS Code
VS Code with CoinService.luau from beacon-yard open: --!strict on line 1, a hover box showing function playerFromHit(hit: BasePart): Player?, and Luau in the status bar.

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"
Choose one

What does .luaurc's "languageMode": "strict" do for the Beacon Yard repo?

What does .luaurc's "languageMode": "strict" do for the Beacon Yard repo?

Press 1 to 4 to choose, Enter to check.

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
Choose one

Why does scripts/typecheck.sh run rojo sourcemap right before luau-lsp analyze?

Why does scripts/typecheck.sh run rojo sourcemap right before luau-lsp analyze?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 7 of 10

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

Choose one

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?

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?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 8 of 10

Build it: run the daily loop and test a pin bump

Build along

m13-art-pass

  • rokit.toml
  1. In your existing Beacon Yard clone, run stylua --check . from the repo root.

    You should see stylua --check . prints nothing and exits 0.

  2. Run selene src tests.

    You should see Selene prints 0 errors, 0 warnings and 0 parse errors.

  3. Run wally install, then git status.

    You should see wally install downloads the packages (18 at m13-art-pass) and creates Packages/ and ServerPackages/, neither listed by git status.

  4. Create src/server/SeleneProbe.luau with local forgotten = 1 inside a function that returns 0. Run selene 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.

  5. Practise a pin bump: create branch chore/try-rojo-77, change rojo in rokit.toml to "rojo-rbx/rojo@7.7.1", run rokit install, then rojo syncback --help. Discard the experiment afterwards: git checkout -- rokit.toml restores the 7.5.1 pin, rokit install reinstalls the pinned tools, and git switch - takes you back to the branch you came from. Then delete the test branch with git branch -D chore/try-rojo-77. Capital -D is 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.

Link to this step · This confused me

Step 9 of 10

Challenges

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

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

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

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

Choose one

StyLua would reformat 30 files after you raise its pin. How do you commit that?

StyLua would reformat 30 files after you raise its pin. How do you commit that?

Press 1 to 4 to choose, Enter to check.

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 run game.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

The Course Runner prints this code when the test passes.

Choose one

After wally install, which of these should you commit?

After wally install, which of these should you commit?

Press 1 to 4 to choose, Enter to check.

Link to this step · This confused me

Step 10 of 10

Recap

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

  1. 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.
  2. 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.
  3. 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.

Next Ecosystem tools: Lune, darklua, roblox-ts

Link to this step · This confused me