How to remove generation on the site of buildings?

Hello. I’m doing random landscape generation and ran into a problem. I have an object on which the player appears. The problem is that this object is under the map (which is generated). I want the landscape to not appear in the place where the spawn is located.

Place2.rbxl (56.9 KB)

I attached the roblox project. I sketched roughly what I mean. There are also all the scripts.
Here is the video on which I made the generation, if anyone needs it.

I’ll add: I thought a little and decided to make it so that generation does not occur at all where there are buildings. I still don’t know how to implement it. Any help is greatly appreciated

1 Like