CyberMax
Hatchwren · Pet & Egg System for Roblox developers

Pets and eggs for your simulator, done right

Eggs with true odds, luck and pity; hatching that charges once; a pet inventory with equip slots, locks and save/load; Golden and Rainbow fusing; pets that follow every player. Server-authoritative, tested, drag-in.

7 modules + 3 example scripts1,457 lines of original Luau26 tests passing.rbxmx + Rojo

For: Roblox developers building simulators, clicker and collection games.

See it work: real output from the shipped code

100,000 hatches of the example's Cavern Egg

Run through Eggs:Roll() with a seeded server Random. Published odds come from Eggs:Odds(), the same numbers you show players before they buy. Pity (a Legendary guaranteed after 400 dry hatches) triggered 18 times.

PetRarityPublishedHatchedShare
● FoxUncommon55%54,95754.96%
● KittyRare33%33,10133.10%
● OwlEpic11%10,91610.92%
● DrakeLegendary0.99%1,0201.02%
● VoidlingSecret0.01%60.01%

With a 2x luck pass the same egg shows: Fox 37.9%, Kitty 45.5%, Owl 15.2%, Drake 1.37%, Voidling 0.01%.

A triple hatch through Hatcher:Hatch(player, "Meadow Egg", 3)

Charged once (300 Coins), three pets added, then EquipBest(): total power 22.

PupCommon
FoxUncommon
BunnyCommon

What's inside

ModuleRuns onWhat it doesLines
EggsServer (Odds: both)Egg definitions, weighted rolls with luck and pity, and the true odds to show players.196
HatcherServerThe server side of hatching.157
PetInventoryServerOne player's pets with unique ids, equip slots, locks, capacity and save/load.264
FuserServerCombine copies of the same pet into the next tier (Normal -> Golden -> Rainbow …).77
PetBookSharedEvery pet in your game, its rarity, its power and its tiers (Normal, Golden, Rainbow…).95
Formation (free)ClientWhere each equipped pet should float around its owner.68
Signal (free)SharedA tiny event object so your UI and systems can react to pet changes.49
Example scriptTypePut it in
HatchwrenConfigModuleScriptReplicatedStorage
HatchwrenServerScriptServerScriptService
HatchwrenClientLocalScriptStarterPlayer > StarterPlayerScripts

Tested like real software

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

SpecPassingFor example
core14/14PetBook validates config and computes tier power …
demo1/1demo: 100,000 Cavern Egg hatches match the published odds
example3/3example server: join, hatch through the remote, coins and pets update …
hatcher8/8triple hatch charges once and adds 3 pets …

Install in 5 minutes

  1. Drag Hatchwren.rbxmx onto ReplicatedStorage in Roblox Studio.
  2. Drag HatchwrenExamples.rbxmx in and move the three scripts to the services above.
  3. Turn on Studio access to API services and press Play. INSTALL.md walks 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. Hatchwren ships its tests (26 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.

More tested kits

StallwrenShop & Currency SystemGavelwickAdmin CommandsMillwrenTycoon KitDevEx calculatorFree: Robux to USD at 2026 rates
Roblox and Roblox Studio are trademarks of Roblox Corporation. Hatchwren is made by CyberMax and is not affiliated with or endorsed by Roblox Corporation.
$12Get Hatchwren