I'm making a 10x10 board generator just so i can get used to algorithms. I would like to know if it would be possible to keep track of the very first block spawned up to the last. In other words; the first spawned brick is named 1 and the last would be named 100.
My current script generates but...Doesn't seem to keep track properly
for z = 1,40,4 do
for i = 1,40,4 do
local p = Instance.new("Part", game.Workspace)
p.Anchored = true
p.Size = Vector3.new(4,1,4)
p.Position = Vector3.new(i,0,z)
p.Name = (z)
end
end
Thanks for the help :)
