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:
01 | for x = 1 , 12 do |
02 | for z = 1 , 12 do |
03 | local s = script.Cell |
04 | local prevC |
05 | local cs = s:Clone() |
06 | cs.Parent = h.Slots |
07 | cs:SetPrimaryPartCFrame(CFrame.new(x* 8 ,z* 8 , 0 )) |
08 | cs.Name = v 1. CName(x,z) |
09 | end |
10 | end |
Here's also a screenshot of my result: https://imgur.com/a/SDSZBug