How would I make procedurally generating rooms, staircases, and hallways?

So I built a kit for my new demo game, it is based on Regalis’s SCP-087-B horror game.

My goal is to have all my rooms, stairways, etc. be randomly generated without having to build several different maps and have a random function pick one.

These are all my rooms from a top-down POV:

You can see that they all have a hallway at the start and end of them, with a few exceptions.

Is there a way that I can make all of these randomly generatred?

If you put them objects in ReplicatedStorage or ServerStorage you could then via script :Clone() them and move the clone to wherever you wish on the workspace and lock them in place. It would just be a matter of finding the placement per object, per object it’s fitting to. Creating your own parameters for how many, direction, start and stop. A second wipe of items per object could even fill them randomly or change what was preset if anything.

That got me a good start, thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.