Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- :3
- local Total = 10000 -- The number of bricks total you want the board to create.
- local SpawnPos = Vector3.new(0,0.2,0)
- local Brick = Instance.new("Part")
- Brick.FormFactor = 2
- Brick.Size = Vector3.new(10,0.4,10)
- Brick.Anchored = true
- Brick.BrickColor = BrickColor.Green()
- local Pos = SpawnPos + Vector3.new(Brick.Size.x / 2,0,0)
- local Model = game.Workspace
- for X = 1, math.sqrt(Total) / 2 do
- local BPos = Pos + Vector3.new(0,0,Brick.Size.z / 2)
- for X = 1, math.sqrt(Total) / 2 do
- local Part = Brick:clone()
- Part.Parent = Model
- Part.CFrame = CFrame.new(BPos)
- BPos = BPos + Vector3.new(0,0,Brick.Size.z)
- end
- local BPos = Pos - Vector3.new(0,0,Brick.Size.z / 2)
- for X = 1, math.sqrt(Total) / 2 do
- local Part = Brick:clone()
- Part.Parent = Model
- Part.CFrame = CFrame.new(BPos)
- BPos = BPos - Vector3.new(0,0,Brick.Size.z)
- end
- Pos = Pos + Vector3.new(Brick.Size.x,0,0)
- end
- local Pos = SpawnPos - Vector3.new(Brick.Size.x / 2,0,0)
- for X = 1, math.sqrt(Total) / 2 do
- local BPos = Pos + Vector3.new(0,0,Brick.Size.z / 2)
- for X = 1, math.sqrt(Total) / 2 do
- local Part = Brick:clone()
- Part.Parent = Model
- Part.CFrame = CFrame.new(BPos)
- BPos = BPos + Vector3.new(0,0,Brick.Size.z)
- end
- local BPos = Pos - Vector3.new(0,0,Brick.Size.z / 2)
- for X = 1, math.sqrt(Total) / 2 do
- local Part = Brick:clone()
- Part.Parent = Model
- Part.CFrame = CFrame.new(BPos)
- BPos = BPos - Vector3.new(0,0,Brick.Size.z)
- end
- Pos = Pos - Vector3.new(Brick.Size.x,0,0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement