Lesson 5 of 8
Ecosystem tools: Lune, darklua, roblox-ts
Meet the tools around Rojo that studios actually use. Run a Lune script, see what darklua rewrites, compare roblox-ts with Luau, choose between Wally and pesde, and check each tool's maintenance state before you depend on it.
By the end you can
- Say what Lune, darklua and roblox-ts each do, and when a studio reaches for each one
- Compare Wally and pesde, and read a version requirement such as 0.7.5 or ^1.2.3
- Read Beacon Yard's selene.toml and stylua.toml and say what each setting does
- Check a tool's repository and say honestly whether it is still maintained
Before this: The toolchain: Rokit, Wally, pesde, StyLua, Selene, luau-lsp
Step 1 of 11
A pegboard of tools
A workshop wall has a pegboard. Every tool has a hook, and you take down only what the job needs. The Roblox ecosystem works like that. Rojo, Rokit, StyLua and Selene are already on your wall. This lesson adds the tools you will see on other studios' walls:
| In the picture | In Roblox |
|---|---|
| A hook on the pegboard | One tool pinned in rokit.toml, with a version |
| Taking down only what the job needs | A project uses Lune, darklua or roblox-ts only when it has that job |
| A tool that is gone from its hook | A tool whose repository says it is no longer maintained |
- Lune runs Luau scripts outside Roblox: build scripts, deploy scripts, admin tools.
- darklua rewrites Luau files with rules, for example to change how modules are required.
- roblox-ts compiles TypeScript to Luau, for teams that prefer TypeScript.
- Wally and pesde install other people's libraries.
- Mantle deployed whole experiences from a config file. Its state needs a careful look, which comes later.
Match each job to the tool you would take off the pegboard.
Step 2 of 11
Lune: Luau with a terminal
LuneLuneA standalone Luau runtime for scripts and tools outside Roblox.Think of it as luau with a terminal, a filesystem and the internet. is a standalone Luau runtime. It runs .luau files from a terminal, with built-in libraries for the filesystem, networking, JSON and TOML, and the command line1. It ships as one small executable. It is not Roblox: its own docs list running full Roblox games outside Roblox as a non-goal. Its security page warns that any script you run has full access to your device2. It can also read and write place and model files, which is why studios use it for build and deploy scripts3.
Beacon Yard already has something a script could read. Its tools are pinned in one file.
[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"
How many tools does Beacon Yard's rokit.toml pin at the m06 milestone?
Step 3 of 11
Write your first Lune script
Lune is installed the same way as the rest of your toolchain, with Rokit1. A script that parses rokit.toml is about ten lines.
-- tools/tools.luau: list the tools this project pins in rokit.toml.
local fs = require("@lune/fs")
local serde = require("@lune/serde")
local manifest = serde.decode("toml", fs.readFile("rokit.toml"))
local names = {}
for name in manifest.tools do
table.insert(names, name)
end
table.sort(names)
for _, name in names do
print(name, manifest.tools[name])
end
Build along
tools/tools.luaurokit.toml
In your clone, run
rokit add lune.You should see rokit.toml gains a lune line, and lune --version prints a version number inside the repo folder.
Save the script above as
tools/tools.luau.You should see The file exists in a tools folder next to src.
Run
lune run tools/tools.You should see Five lines print in alphabetical order: lune (the one you just added), rojo, selene, stylua and wally, each with its owner, name and version.
A stranger sends you a handy .luau script. What do Lune's own docs say you should know before you run it?
Press 1 to 4 to choose, Enter to check.
Step 4 of 11
darklua: rewrite the code before it ships
darkluadarkluaA command line tool that rewrites Lua and Luau files using configurable rules.Think of it as a find-and-replace that understands code, run on a whole folder. reads Lua and Luau files, passes each through a list of rules, and writes new files. The command is darklua process <input> <output>, with an optional config file4. Rules do things like remove comments, rename variables, or convert how a module is required5. They run one after another, and the docs warn that the order sometimes matters6.
The most useful rule for Roblox is convert_require. Code written with file paths or aliases can be turned into the instance paths Roblox needs7. This cell shows the idea in ten lines. Real darklua reads a config file and your project's sourcemap.
The second line has an alias the table does not know. Why does the cell leave it alone instead of guessing?
Press 1 to 4 to choose, Enter to check.
Step 5 of 11
roblox-ts: another language on the same road
roblox-tsroblox-tsA compiler from TypeScript to Luau for Roblox.Think of it as a translator that writes the Luau for you from TypeScript. compiles TypeScript to Luau. A project starts with npm init roblox-ts, the compiler runs with npx rbxtsc -w, and Rojo syncs the output into Studio, so it slots into the workflow you already know8. Teams pick it for TypeScript's tooling and types, or because the team already writes TypeScript elsewhere.
Its cost is a second language and a build step between your source and what Studio runs, so you debug code that was generated for you. Roblox's API types also come from a separate package, @rbxts/types. Its state needs checking too, as a later step shows.
Other ways pros do this
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Luau (plain) | The language Roblox runs. Type annotations and strict mode are built in. | Most studios, and everything in this course. It is the fastest path from an idea to Studio and every Roblox doc example is in it. | Luau's type checker is younger than TypeScript's and has fewer ecosystem tools. |
| roblox-ts | TypeScript compiled to Luau, with Roblox types from the @rbxts packages. | Teams that already write TypeScript and want its editor tools, and that accept a compile step. | A second language and toolchain. Its stable release is 3.0.0 from 2024, with newer development builds on npm's next tag. |
| Luau plus darklua | Write Luau, then transform the files with rules before building. | Code that must run in more than one place, such as a Roblox place and a Lune script. | One more pipeline step to pin and debug. |
If Beacon Yard were rewritten in roblox-ts instead of plain Luau, which would be a real cost?
Press 1 to 4 to choose, Enter to check.
Step 6 of 11
Wally or pesde
Both tools download libraries into your project. 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 the established one. Its registry is a GitHub repository, its manifest is wally.toml, and Beacon Yard uses it from m10-memory to install ProfileStore (and from m09-react-shop for React-lua)9. pesdepesdeA package manager for Luau with its own registry and per-runtime package targets.Think of it as wally's newer cousin that also works outside Roblox. is newer. It supports packages that target Roblox or Lune, can install Wally packages through a wally_indices list, and has its own registry10.
Both read a version requirement. In Wally, a bare 1.2.3 means the same as ^1.2.3, which matches Cargo's rule911. The rule is about what a safe upgrade is: the leftmost non-zero number must not change.
Other ways pros do this
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Wally | Package manager for Roblox with a GitHub-hosted registry and a lockfile. | The default in most studios today, and what Roblox's own guides mention. | Roblox only. Its latest release, 0.3.2, is from 2023, though the repository is still updated. |
| pesde | Package manager for Luau with its own registry and per-runtime targets. | New projects that also run Luau outside Roblox, or that want to install Wally packages and pesde packages together. | Pre-1.0 (0.7.x), with a smaller registry. Read its docs for the version you install. |
| Vendoring | Copy the library's files into your repository by hand. | One tiny dependency, or a library you will fork. | No version check and no upgrade path. You own every fix. |
A manifest asks for 0.7.5. Which is the first release it refuses?
requirement first refused
1.2.3 2.0.0
^1.2.3 2.0.0
0.7.5 ?
Press 1 to 4 to choose, Enter to check.
From m10-memory, Beacon Yard's wally.toml asks for lm-loleris/profilestore@1.0.3. A later wally update may install which of these?
Press 1 to 4 to choose, Enter to check.
Step 7 of 11
Two tiny config files
Two of the tools on your wall are configured by files small enough to read in a breath. Beacon Yard's are at the top of the repository.
std = "roblox"
column_width = 120
line_endings = "Unix"
indent_type = "Tabs"
indent_width = 4
quote_style = "AutoPreferDouble"
call_parentheses = "Always"
collapse_simple_statement = "Never"
std = "roblox" tells Selene to use Roblox's globals, such as game and Vector3, instead of plain Lua 5.1. Selene generates that definition itself and refreshes it every six hours, which needs an internet connection. A project can pin it with roblox-std-source = "pinned"12. StyLua's seven settings are the same as its defaults, so the file records the style instead of changing it13.
StyLua's defaults are column_width 120, Unix line endings, Tabs, indent_width 4, AutoPreferDouble, Always and Never. How many of Beacon Yard's seven settings differ from them?
A teammate changes stylua.toml and CI's stylua --check starts failing on every Luau file. Which line broke it?
Press 1 to 4 to choose, Enter to check.
Step 8 of 11
Where the pegboard breaks
Both sidesRemember: The tool ecosystem is a pegboard of tools above the workbench.
A pegboard tool does not care what you used before it. Build tools do. Answer before you read the breakdown.
Where does it break?“A pegboard of tools above the workbench” is a good picture of the tool ecosystem. Where does it stop being true?
It breaks here. Pegboard tools do not care what was done before them, but build tools run in a pipeline where order and versions matter: a rule that needs a value runs after the rule that injects it, and a build needs its packages installed first.
The true model. Ecosystem tools are separate programs that you chain: install pinned versions, install packages, transform code, build the place. Each step feeds the next, so the order and the exact versions are part of the project and belong in files that CI also reads.
darklua's docs warn that the order of rules sometimes matters. What would go wrong if a rule that computes constant expressions ran before the rule that injects the constant's value?
Press 1 to 4 to choose, Enter to check.
Step 9 of 11
Is it still alive?
Before a team puts a tool in its pipeline, someone opens the repository and looks: the last release, the last commit, open issues, the README's first lines. The table below is what that check showed on 2026-11-23.
Reference Tool state on 2026-11-23
Dates and versions come from each project's GitHub releases page and README, read on that day. Mantle's notice is the first thing its README says14. These facts go stale quickly, so repeat the check yourself.
v0.11.1, 21 Oct 2026, MPL-2.0- Active. Recent release and commits.
v0.19.0, 10 Jun 2026, MIT- Active. The last release is five months old; the last push was 13 Jul 2026.
v3.0.0, 12 Sep 2024, MIT- Stable release is over two years old. Development builds are on npm's next tag (latest 1 Oct 2026) and the repository was pushed to on 30 Oct 2026. Active, but check which build you need.
v0.3.2, 5 Jun 2023, MPL-2.0- Last release is three years old. Repository pushed to on 12 Oct 2026. Roblox's own guides still list it.
v0.7.5, 22 Nov 2026, MIT- Very active. Pre-1.0, so expect changes.
v0.11.18, 14 Mar 2025, MIT- Its README says it is no longer maintained and not to expect fixes or replies. Do not start a new project on it.
v7.7.1, 2 Oct 2026, MPL-2.0- Active. Beacon Yard pins 7.5.1, two minor versions behind.
A tool's README starts with 'no longer maintained'. Your build already uses it and works. What is the best next step?
Press 1 to 4 to choose, Enter to check.
Step 10 of 11
Challenges
Level 1, Apprentice
Challenge
Turn the listing script into a check a CI job could run.
- Start from
- m06-drone-wrench with Lune installed
Done means
- tools/tools.luau prints the tools sorted by name
- It also prints how many tools are pinned
- It exits with an error when a tool's version string has no @ in it
Meet the criteria above, then record your own result. No test grades this check.
Level 2, Builder
Challenge
Process the game's code through one darklua rule and check what changed.
- Start from
- m06-drone-wrench with darklua installed (rokit add seaofvoices/darklua)
Done means
- A .darklua.json that lists the remove_comments rule
- darklua process src out writes a copy of the Luau files in out
- No comment lines remain in the out copy, and src is unchanged
Meet the criteria above, then record your own result. No test grades this check.
Why does the level 3 challenge compare 1.9.0 and 1.10.0 as numbers?
Press 1 to 4 to choose, Enter to check.
Level 3, Professional
Challenge
Write the rule your package manager uses to decide which updates are safe. Start from the m14-ship tag in the game repo, then run it with game.ServerScriptService.RunGameTests:Invoke("ecosystem-tools").
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("ecosystem-tools")in the server command bar. Copy the pass code from Output.
Done means
- challenges/work/version_req.luau treats 1.2.3 and ^1.2.3 as the same caret rule
- A version below 1.0.0 keeps its left-most non-zero number fixed
- ~1.2.3 allows patch changes only and =1.2.3 allows exactly 1.2.3
- Parts are compared as numbers and junk input returns false
- The ecosystem-tools challenge prints TEST PASS for all seven checks
Step 11 of 11
Recap
Retiring the analogy
You no longer need “a pegboard of tools above the workbench”. Ecosystem tools are separate programs that you chain: install pinned versions, install packages, transform code, build the place. Each step feeds the next, so the order and the exact versions are part of the project and belong in files that CI also reads.
Recap
- Lune runs Luau scripts outside Roblox with full file access, darklua rewrites code with ordered rules, and roblox-ts compiles TypeScript to Luau at the cost of a build step.
- Wally and pesde both read caret version requirements, where below 1.0.0 the minor number is the breaking one. Beacon Yard's wally.toml and rokit.toml pin exactly what CI uses.
- Check a tool's repository before you depend on it: Mantle is unmaintained, roblox-ts's stable release is two years old, and Wally's last release is from 2023.
The tool ecosystem is a pegboard of tools above the workbench, until pegboard tools do not care what was done before them, but build tools run in a pipeline where order and versions matter: a rule that needs a value runs after the rule that injects it, and a build needs its packages installed first.
Queued for review
- Match each job to the tool you would take off the pegboard.
- How many tools does Beacon Yard's rokit.toml pin at the m06 milestone?
- A manifest asks for 0.7.5. Which is the first release it refuses?
- From m10-memory, Beacon Yard's wally.toml asks for lm-loleris/profilestore@1.0.3. A later wally update may install which of these?
- A tool's README starts with 'no longer maintained'. Your build already uses it and works. What is the best next step?