local function createBlockMass(size, count)
local blocks = Instance.new("Model", game.Workspace)
local block = Instance.new("Part", nil)
block.Anchored = true
block.Locked = true
block.Size = size
for x = 1, count.X, 1 do
for y = 1, count.Y, 1 do
for z = 1, count.Z, 1 do
local newBlock = block:clone()
newBlock.CFrame = (CFrame.new(Vector3.new(-(count.X * size.X) / 2, -(count.Y * size.Y) / 2, -(count.Z * size.Z) / 2)) + Vector3.new((x * size.X), (y * size.Y), (z * size.Z)))
newBlock.Parent = blocks
end
end
wait(5)
print("waiting " .. x .. "/" .. count.X)
end
print("done")
return (blocks);
end
createBlockMass(Vector3.new(2048, 16, 2048), Vector3.new(25, 1, 25)) |