How do I make parts spawn around this gray part?

image

I want to spawn parts around the gray part with the red part as the boundaries (3, 3, 3)

nevermind, found a solution by myself

1 Like