Random map generator problem (Fixed)

I’m trying to make a random map generator, it selects from these rooms to build a map:
image
It works, but when i ran it many of them would be colliding. As a fix i decided to use :GetTouchingParts() to solve the issue, but it only made it worse.
With the collision check:
image
There is also omni-frequently a room inside of another room despite the collision check:

Code:

(CODE REMOVED BECAUSE I DONT WANT ANYBODY STEALING)

Can someone help me with this issue?

We can’t help if we don’t know the code. I don’t think you should worry about people stealing your code, we’re here to help. If you’re still worried you can just show the chunks of code that are problematic.

2 Likes

I think we need more information about how you want the map to be generated given the map sections you have.

From what i can remember of your code which i saw before you edited the post it wasn’t clear how you were deciding to vary how new sections are positioned. There didn’t seem to be any rotation of the sections going on so do you just want a line of random sections?

I’ve gotten it fixed, i forgot to update the title. Sorry.