I would like to generate a large mass of blocks out of smaller blocks, for a building game to allow players to quickly add masses of parts (Why I want to make them out of smaller parts has to do with the way combat works) and the math on how to do this is lost on me.
I have been thinking of take the X Y and Z of a CFrame or V3 that the player enters and generating it like that in rows, but I do not even know how to spawn a part right beside another (almost like using a dragger tool to place the part at the exact position.)
Besides just compromising and making a different way of dealing damage so that the number of parts doesnt matter, how could I go about doing this?
(My math is atrocious due to a bunch of home life factors, so if you could explain the logic in laymans terms it would be very appreciated)

3 comments
I think I can get around that by just using CFrames and welding it together, considering I want people to be able to CFrame parts together anyway. I think I can easily make this form rectangles and other shapes as well. Thank you for the help, I am terrible at math as stated in the OP!
The problem is CFrame, setting position messes stuff up if the parts can collide.
In the future, please explain you code thoroughly instead of just posting it and saying "This works, try it" or something like it.