Skip to main content

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@next

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

OutputServer · Sept 2026

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

Server · ServicesClient · ControllersPointsServiceClient.GetPointsSignals.PointsChangedEmoteServiceClientEvents.EmoteHudControllerDependencies.PointsServiceLorenBurnEmoteControllerLorenBurnExploiterCallreturns a PromisePoints:GetPoints()PointsChanged:Fire(player, total)SignalClient eventEmote:Fire("Wave")Junkdropped before your code runsLorenchecks every packetServer · ServicesPointsServiceClient.GetPoints · Signals.PointsChangedEmoteServiceClientEvents.EmoteClient · ControllersHudControllerDependencies.PointsService · LorenBurnEmoteControllerEmote:Fire("Wave")CallSignalEventPromisebackJunkdroppedLoren checks every packet

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

Build your first service

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
  1. 01

    Line 3: Signals = { "PointsChanged" } is all the setup. Fire it for one player, a list, everyone, or everyone but one.

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

What you get

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.

The same attack against Loren 1.5.1 and 2.0
1.5.1What we checked2.0
43 handler crashes from crafted packetsJunk reaching your handlers0 of 48,190 accepted
47,364 about 142k a minuteServer warnings0 warnings
About 3x slowerServer frame time6.1 ms p99, unchanged
Stolen through the handshake RemoteFunctionRoute idsClosed no RemoteFunction to ask
83% OK; the test ran above its 50 calls/s capHonest players' calls1,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

  • Works with
  • Rojoloren serve runs rojo serve
  • Argonruns argon serve --sourcemap
  • Script SyncStudio's built-in sync, no extra tools
  • Rokitinstalls Rojo or Argon. Aftman and Foreman work too
  • Luau-LSPautocomplete from the sourcemap
  • Promiseevaera's library comes bundled

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 →

~/my-game
  1. Install the beta

    npm i -g loren-framework@next

    You need Node 18 or newer. The beta is on the next tag until 2.0 is stable. Plain npm i -g loren-framework still installs 1.5.1.

  2. Make a project

    loren init my-game

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

  3. Connect Studio

    loren serve

    Then connect the Rojo or Argon plugin. With Script Sync you sync four folders once instead.

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