Need help filling up a hole with blocks by using a script

Hello Devs,
I need help making a script that fills up a certain area with 1x1 blocks, here’s what I mean:
Screenshot 2021-09-26 215308
and then I want to fill up this entire hole with blocks that are cloned from ReplicatedStorage:
Screenshot 2021-09-26 214947
I need someone to explain to me what I have to use and how I have to use it because I have done research and can’t find anything. Would be appreciated if someone could help.
Thanks in advance.

1 Like

You can use Perlin Noise to generate terrain. Here’s a great video on it:

1 Like

He asked how to fill that block, and not for terrain generation alternatives. Filling a block can be needed at a lot of other places

For op I think you could use a region3 then using math.floor get the value needed to position the brick at, and something like that, I’m not sure but I think it’d go by those lines.

2 Likes

Ah, I figured they could have just used the duplication part without the perlin noise.

1 Like