DEV Community

Cover image for Making a Roblox game with my daughter where the events come from the real sky
Victor Machiavelli
Victor Machiavelli

Posted on Edited on AI-assisted

Making a Roblox game with my daughter where the events come from the real sky

My daughter is 11. She knows a bit of JavaScript, loves pets, and asks a lot of questions about the stars. So this autumn we made a Roblox game together: Hatch a Star: Real Sky Pets. It opens on Friday, 13 November 2026.

She is the co-designer: she names pets, picks colors, and says "no, that's boring". I write the code. Here is what we built and a few things I learned.

The idea: the sky above your head

The biggest pet games on Roblox are about grinding numbers or stealing eggs from other players. We wanted the opposite: a game about the real sky. If a kid sees a meteor in the game on 17 November, they can go outside that night and maybe see a real one.

What you do in the game

You land on your own floating island in the Milky Way. Eggs appear around the islands; you carry them home to your nest and hatch them. Every pet is a constellation: when an egg hatches, the constellation draws itself with lines in the sky, lights up, and the pet steps out of the stars. A lion cub for Leo, a fluffy ram for Aries, and so on.

Pets follow you and bring coins. Planet fairies (Mercury, Venus, Mars, Jupiter, Saturn and the rest) give you abilities. There are boss fights, mini-games, a house to decorate, and a Star Atlas with new worlds.

The real-sky part

This is the part I'm proudest of.

  • Night sky. At night the stars stand where they really are right now, for a mid-northern latitude. Tap one and you get its name and a short fact. Find a constellation and it stays lit for you.
  • Your own star. Every player gets a real star from the Hipparcos catalog, forever. The game tells you where to look for it tonight.
  • Meteor showers. The Leonids (peak 17 November) and the Geminids (13–14 December) are real events in the game. Eggs rain from the sky on all servers at the same time, with a shared counter for the whole world.
  • Worlds open on the calendar. Rings of Saturn on 21 November, the Orion Nebula on 28 November, the Pleiades on 5 December, Andromeda on 19 December, the Event Horizon on 26 December. The Atlas shows an honest countdown.

How the sky works in code

Roblox runs many servers at once, and they all have to agree on what is happening in the sky. They must not call the internet for it. So the sky is a plain table in a config file: every event has a UTC time, computed ahead of time.

{ id = "Leonids2026", name = "Leonids", peak = 1794916800 }, -- 2026-11-17 12:00 UTC
Enter fullscreen mode Exit fullscreen mode

Every server reads os.time() (which is UTC) and checks the table, so all servers switch at the same second. The Moon phase comes from a small formula as a fallback, so the game never shows a full Moon on a new-Moon night.

Everything a kid might want to change (pet names, egg odds, prices, dates, colors) lives in Config files with short comments. In January my daughter will re-theme the game herself, and she should not need to touch the logic for that.

Fair to kids

The game is free. There are some optional purchases, but we decided early:

  • No paid random items. Eggs are hatched only with coins you earn by playing, and every egg shows its odds.
  • No stealing from other players. Instead, players near each other carry eggs faster together, and some eggs open only when two friends hatch them together (twin stars like Castor and Pollux).
  • No fake countdowns and no pop-ups you didn't tap.
  • The leaderboard counts kindness (stars given to friends, helping new players), not spending.

Tools

  • Rojo and Luau, files in git, server-authoritative logic, ProfileStore for saves with a migration for every schema change.
  • Roblox Studio's built-in MCP server let my coding assistant run play tests, read the console and take screenshots, which helped a lot.
  • 3D models are partly generated with Roblox MeshGen and the art with AI image tools, then picked and tuned by hand. My daughter vetoed many of them.

What I learned

  • Kids notice everything in the first minute. We rebuilt the first 60 seconds many times: you fall through the clouds, a fairy catches you, and the first egg flies in as a meteor right in front of you.
  • Phones first. Most players are on phones, so every button is big, and the sky glow had to be toned down (the Sun was a white spot when you flew up to it).
  • Real dates make a deadline you can't move. The Leonids will not wait for us.

Come and look at the sky with us

Hatch a Star: Real Sky Pets is live on Roblox since Friday, 13 November 2026: play it here. On 17 November, come to the Leonids night, in the game and, if the sky is clear, outside.

Questions and feedback are very welcome in the comments.

Top comments (0)