A tycoon that earns, saves and rebirths
Plots, a checked unlock graph, physics-free droppers and upgraders with exact income maths, a collector pad, capped offline earnings, rebirths that can't double-fire, and saving. Lay out your plot in Studio or start from the grey-box demo.
For: Roblox developers building tycoons and idle games.
See it work: real output from the shipped code
30 minutes of the example tycoon
A player who always buys the cheapest next item, simulated second by second with Economy:Step() (no physics parts). 95,207 Cash produced; 9 of 10 items unlocked (the last one needs a rebirth).
| Time | Bought | Price | Income after |
|---|---|---|---|
| 0:00 | Dropper1 | 0 | 1/s |
| 0:25 | Dropper2 | 25 | 3/s |
| 0:45 | Walls | 60 | 3/s |
| 1:25 | Washer | 120 | 4.5/s |
| 2:10 | Dropper3 | 200 | 12/s |
| 2:35 | Vault | 300 | 12/s |
| 3:25 | Polisher | 600 | 24/s |
| 4:15 | Dropper4 | 1,200 | 60/s |
| 4:57 | Tower | 2,500 | 60/s |
The example's rebirth curve
| Rebirth | Cost | Income multiplier |
|---|---|---|
| 1 | 5,000 | x1 |
| 2 | 12,500 | x1.5 |
| 3 | 31,250 | x2 |
| 4 | 78,125 | x2.5 |
| 5 | 195,313 | x3 |
| 6 | 488,281 | x3.5 |
What's inside
| Module | Runs on | What it does | Lines |
|---|---|---|---|
| UnlockGraph | Shared | The tycoon's buttons and items as a checked dependency graph (prices, requirements, order). | 319 |
| Tycoon | Server | One player's tycoon state (cash, unlocked items, rebirths, stored cash) with atomic purchases. | 272 |
| Economy | Server | Virtual droppers, upgraders and collectors; deterministic income maths with no physics parts. | 184 |
| Rebirth | Server | A configurable price curve and permanent multiplier, with a reset that can't run twice. | 95 |
| Plots | Server | N plots per server, one per player, claim and release with ownership checks. | 145 |
| Layout | Server | Reads a plot Folder you built in Studio (attributes or tags) and shows or hides its items. | 329 |
| Guard (free) | Server | Rate limits, argument checks and touch/distance checks for every remote and touch handler. | 148 |
| DropVisuals | Client | Client-only cosmetic drops that glide from each dropper to the collector (never cash). | 183 |
| Signal (free) | Shared | A tiny event object so your UI, saves and analytics can react to tycoon changes. | 49 |
| Example script | Type | Put it in |
|---|---|---|
| MillwrenConfig | ModuleScript | ReplicatedStorage |
| MillwrenServer | Script | ServerScriptService |
| MillwrenClient | LocalScript | StarterPlayer > StarterPlayerScripts |
Tested like real software
48 automated tests run in a real Luau VM against a Roblox engine mock, on two runtimes (luau-web and native Luau 0.740). They ship in the zip: cd tests && npm install && node run.mjs.
| Spec | Passing | For example |
|---|---|---|
| demo | 1/1 | demo: 30 minutes of a player buying the cheapest next item, plus the rebirth curve |
| economy | 8/8 | droppers add up per second … |
| example | 7/7 | example server: demo plots are built and the graph is valid … |
| graph | 7/7 | a valid graph builds and orders dependencies first … |
| guard | 7/7 | rate limit: burst, then refill over time, per player and per key … |
| plots | 6/6 | plots: claim first free, one per player, specific plot, full server … |
| tycoon | 12/12 | purchase: check -> spend -> unlock -> reveal … |
Install in 5 minutes
- Drag
Millwren.rbxmxonto ReplicatedStorage in Roblox Studio. - Drag
MillwrenExamples.rbxmxin and move the three scripts to the services above. - Turn on Studio access to API services and press Play.
INSTALL.mdwalks through an example place step by step.
FAQ
Is this allowed on Roblox?
Yes. It's ordinary Luau using Roblox's own services (DataStoreService, MarketplaceService, Players). Nothing bypasses Roblox rules.
Why not a free model from the Toolbox?
Free models are a fine start. Millwren ships its tests (48 of them, run on two Luau runtimes), validates every remote argument, and is original code with a clear licence.
Do I need Rojo?
No. Drag the .rbxmx files into Roblox Studio. A Rojo project file is included if you use it.
Can I use it in a game I sell or a client's game?
Yes: unlimited experiences, commercial or not, for you or your clients. You can't resell or share the code itself.
Is CyberMax affiliated with Roblox?
No. Roblox and Roblox Studio are trademarks of Roblox Corporation, named only to describe compatibility.