Hello! So, i'm trying to make something like a bee hive generation, but thoose cells are just generated in line, but i want them to fit all the space. Here's my code:
for x = 1, 12 do for z = 1,12 do local s = script.Cell local prevC local cs = s:Clone() cs.Parent = h.Slots cs:SetPrimaryPartCFrame(CFrame.new(x*8,z*8,0)) cs.Name = v1.CName(x,z) end end
Here's also a screenshot of my result: https://imgur.com/a/SDSZBug