
Luau framework for Roblox 2.0 beta
Write the game. Loren wires it up.
Loren is a Luau framework for Roblox. You write Services for the server and Controllers for the client. Loren starts them in the right order, hands each one what it needs, and carries calls and signals between them.
Beta · Node 18+
npm i -g loren-framework@nextOn 1.5.1? Your code runs unchanged. Upgrade guide →
Measured, not estimated
Numbers from Studio.
Everything in this log comes from Roblox Studio, September 2026. Only the CLI tests run on Node. The attack came from an exploiter bot at about 2,400 packets a second, while honest players kept playing.
(LORENঌ) Burning on Server: 4 services, 9 routes, 6 ms
-- attack test: exploiter bot, about 2,400 junk packets a second
- Junk packets accepted
- 0 of 48,190
- Honest calls OK
- 1,206 of 1,206
- Server frame p99 during the attack
- 6.1 ms
- Server warnings
- 0
- Studio tests
- 1,212 passed, 0 failed
- Signals lost or reordered under stress
- 0
- Bytes on the wire for a 64-byte call
- about 76
- CLI tests
- 141 passing
0/48,190
junk packets reached your handlers
How it wires
Services on the server. Controllers on the client.
Each module lists what it needs by name. Loren loads everything, sorts it and starts it in order, then carries calls and signals between the two sides. You never write a require path to another module, and you never create a RemoteEvent.
Calls go up.
A Controller calls a Service and gets a Promise back. Every call has a timeout, 10 seconds unless you change it, so nothing hangs forever.
Signals come down.
A Service fires a signal for one player, a list, everyone, or everyone but one. Client events go the other way.
Junk stops in the middle.
Every packet is checked before your code runs, and junk is dropped without a log line for each one. One batch per frame, so a 64-byte call costs about 76 bytes.
A whole service
Here’s a Service, start to finish.
Two files. No RemoteEvents, no require paths. It’s a trimmed version of the PointsService premade (loren inject service PointsService).
src/server/Services/PointsService.luau
local PointsService = {
Client = {},
Signals = { "PointsChanged" },
}
local points: { [Player]: number } = {}
function PointsService:AddPoints(player: Player, amount: number)
points[player] = (points[player] or 0) + amount
self.Signals.PointsChanged:Fire(player, points[player])
end
function PointsService.Client:GetPoints(player: Player): number
return points[player] or 0
end
return PointsService
- 01
Line 3:
Signals = { "PointsChanged" }is all the setup. Fire it for one player, a list, everyone, or everyone but one. - 02
Line 13: Client methods get the calling player first. Loren fills it in from the connection, so a client can’t pretend to be someone else.
src/client/Controllers/HudController.luau
local HudController = {
Dependencies = { "PointsService" },
}
function HudController:LorenBurn()
local Points = self.Dependencies.PointsService
Points.Signals.PointsChanged:Connect(function(total)
print("Points:", total)
end)
local ok, total = Points.Try:GetPoints()
if ok then
print("Starting with", total)
end
end
return HudController
- 03
Line 2:
Dependencies = { "PointsService" }gives the Controller a proxy. Its methods return Promises. - 04
Line 5:
LorenBurnis the “run” hook. It runs once every module has started. - 05
Line 12:
Trywaits for the answer and gives youokplus the values. On failure you get a message and an info table instead.
What you get
What’s in the box.
Eight parts, each with its own page in the docs. Pick one.
Under attack
We threw junk at it. It kept going.
We pointed an exploiter bot at a Studio test server. It fired 48,190 garbage packets, about 2,400 a second, while honest players kept playing. Then we ran the same attack against 1.5.1.
| 1.5.1 | What we checked | 2.0 |
|---|---|---|
| 43 handler crashes from crafted packets | Junk reaching your handlers | 0 of 48,190 accepted |
| 47,364 about 142k a minute | Server warnings | 0 warnings |
| About 3x slower | Server frame time | 6.1 ms p99, unchanged |
| Stolen through the handshake RemoteFunction | Route ids | Closed no RemoteFunction to ask |
| 83% OK; the test ran above its 50 calls/s cap | Honest players' calls | 1,206 of 1,206 OK |
It won’t check your game logic for you.
Loren stops junk. It can’t stop an exploiter from calling BuyItem with arguments a normal player could send. Check prices, cooldowns and ownership on the server.
Read the security page →Works with
Get started
Four steps. The last one is Play.
It’s a beta. Try it on a side project, something you can afford to break, and tell us what broke. Paste the boot report when you open an issue.
Coming from 1.5.1? Run loren update in your project. Upgrade guide →
Install the beta
npm i -g loren-framework@nextYou need Node 18 or newer. The beta is on the
nexttag until 2.0 is stable. Plainnpm i -g loren-frameworkstill installs 1.5.1.Make a project
loren init my-gamePick Rojo, Argon or None. None uses Studio’s built-in Script Sync, so there’s nothing else to install. You get the runtime, a bootstrap script, and an example Service and Controller.
Connect Studio
loren serveThen connect the Rojo or Argon plugin. With Script Sync you sync four folders once instead.
Press Play
Studio Output
(LORENঌ) Burning on Server: 1 service, 0 routes, 4 ms
(LORENঌ) Burning on Client: 1 controller, 0 services, 180 ms
Loren prints one “Burning on Server” line when it’s up (burning is Loren’s word for running). If something’s wrong, you get one report that lists every problem, with a suggestion when it spots a typo.