How do I make a randomly generated maze

Honestly I have no idea how to do this. I thought of maybe generating a path towards the end from the start and branching out from that?

How would I do this from segments randomly chosen in a segments folder

If all the segments in the maze can be put next to one another, then just make them all the same size and make a grid of transparent boxes of the same size, and set up a script that randomly sets the position of each segment to a random box. You can name each of the boxes a number, then use math.random() to get a random number, with the range containing each of the box names. Sorry for the bad formatting, I’m on mobile!

1 Like