Star Cluster Creator


For the past few days, I’ve been working on a prototype for a project. At first, I started out by generating a sky full of stars. I felt like his was really awesome, but really simple, so I tried to do more.

Sky full of stars:

After this, I decided to experiment with a premade map of stars. I created a small map with 10 “stars”, and then created a script to generate the stars in the sky based on the positions of the stars in the map.

“Star” Map:

I gave all of the stars names, and then displayed the names next to the stars. This is the view from “Woops”:

I realized that this would work on a much larger scale, and so I created a script to generate a much larger “Cluster” of stars. This is more similar to a Globular Cluster, though on a smaller scale because hundreds of millions of stars probably wouldn’t work.

This is a cluster with 500 stars:

Each star has a “starType”, there are currently five “starTypes”:

YD - Yellow Dwarf (The Sun)
RD - Red Dwarf (The most common star in the Milky Way)
WD - White Dwarf (What our sun will become)
N - Neutron Star (Incredibly Dense and Small)
B - Black Hole

There is a point in the middle called “MidPoint”. Here is the view from it:

You may notice that there is a brighter area in the middle of that, that is supposed to be light pollution.

Each star within this cluster has a name, they can all be seen here:

I will be traveling out to a Star near the edge of the cluster, it’s called Neonti, there is an arrow pointing to it in the above picture. The star is a White Dwarf, and it’s about 4,390 Light Years away from the MidPoint. (The scale I’m using has 1 Stud = 100 Light Years). The entire Cluster has a diameter of about 10K Light Years.

Here is the view of the Star Cluster from Neonti:

I’d love to know what people think, or if there is anything I should add. If you have any ideas for things to add, remove, or change, please let me know!

This has evolved quite a bit. Consider checking out this test place where you can run around a Generated Galaxy:



I edited the Star generation to have it generate on somewhat of a plane. While this doesn’t look exactly like a spiral galaxy (there are no arms), it still looks very cool (in my opinion).


The views from different stars is now dramatically different (and much cooler).

This is the view from the MidPoint:

(Arrow pointing to Gluarsis)

This is the view from a far away star called Gluarsis:


Next up: How I accidently created the universe

Jokes aside, Good works looks really cool :slight_smile:


I could probably make the galaxy generator script run multiple times, with different (random) origin points.

1 Like

You should make them a sphere and neon but great star cluster script

1 Like

The problem with making the stars an object rather than a BillboardGUI is that depending on the player’s Graphics Settings, some of the stars would not be visible, or they would be white. Billboard GUI’s don’t change when the graphics settings change, so they work better in this case (unless there is something I don’t know).


I created a test place with a galaxy of 10,000 stars. It’s a public place, so you can go and run around the galaxy!

damn this is super cool,if roblox and peoples pc was super good,you could make your own universe in it bruh.anyways good job,i wish this was open sourced so i can learn how it works but it isnt :sob:

I can un-copylock it. The chances of my using it for an actual game at this point is low. This post explains how the old version works, to make it a spiral galaxy I have it working in a slightly different manner where the star’s final location is created in a series of steps. It first starts at the center, then is given a random distance, it is then moved in steps of an arbitrary amount and turned an arbitrary amount until it reaches it’s final destination. At it’s final destination it is moved a random direct by a random distance to it’s final location.

I then have the star-type being determined by a weighted random of sorts using rough estimates of the percentage of star types in the actual universe. This results in only about 12 out of the 10,000 being Black-Holes.

Since this point I have worked slowly on a Star System generator system, which creates a random amount of planets and belts for a given star, this yet again uses data and weighted randoms to determine location and size. Working on the Star Systems made blatantly obvious the problems with my plan though. The distances between celestial bodies does not bode well with Roblox’s engine, and so until I can figure out a way to make the vast distances work, I won’t be able to create a 1:1 solar system, or even one with a distance scaling of 1:10, it’s all just far too large.

I’ll create another post in the near future about the star systems once I make it look a little nicer and have a way to show how it all works.

For now though, the Galaxy Generator place is un-copylocked and you can look through to figure out how it works!

P.S: This is what the new spiral galaxies look like:

1 Like

damn thats a really cool thing,love your work and i will look into the game and maybe learn some cool stuff :smiley:

currently messing around numbers to see different generations

i shrinked the galaxy and made star object larger and visible and then i found
a black hole !