Advertisement
N0ePlox

LAND HOE

May 11th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. -- :3
  2. local Total = 10000 -- The number of bricks total you want the board to create.
  3. local SpawnPos = Vector3.new(0,0.2,0)
  4.  
  5. local Brick = Instance.new("Part")
  6. Brick.FormFactor = 2
  7. Brick.Size = Vector3.new(10,0.4,10)
  8. Brick.Anchored = true
  9. Brick.BrickColor = BrickColor.Green()
  10.  
  11. local Pos = SpawnPos + Vector3.new(Brick.Size.x / 2,0,0)
  12. local Model = game.Workspace
  13.  
  14. for X = 1, math.sqrt(Total) / 2 do
  15. local BPos = Pos + Vector3.new(0,0,Brick.Size.z / 2)
  16. for X = 1, math.sqrt(Total) / 2 do
  17. local Part = Brick:clone()
  18. Part.Parent = Model
  19. Part.CFrame = CFrame.new(BPos)
  20. BPos = BPos + Vector3.new(0,0,Brick.Size.z)
  21. end
  22. local BPos = Pos - Vector3.new(0,0,Brick.Size.z / 2)
  23. for X = 1, math.sqrt(Total) / 2 do
  24. local Part = Brick:clone()
  25. Part.Parent = Model
  26. Part.CFrame = CFrame.new(BPos)
  27. BPos = BPos - Vector3.new(0,0,Brick.Size.z)
  28. end
  29. Pos = Pos + Vector3.new(Brick.Size.x,0,0)
  30. end
  31. local Pos = SpawnPos - Vector3.new(Brick.Size.x / 2,0,0)
  32. for X = 1, math.sqrt(Total) / 2 do
  33. local BPos = Pos + Vector3.new(0,0,Brick.Size.z / 2)
  34. for X = 1, math.sqrt(Total) / 2 do
  35. local Part = Brick:clone()
  36. Part.Parent = Model
  37. Part.CFrame = CFrame.new(BPos)
  38. BPos = BPos + Vector3.new(0,0,Brick.Size.z)
  39. end
  40. local BPos = Pos - Vector3.new(0,0,Brick.Size.z / 2)
  41. for X = 1, math.sqrt(Total) / 2 do
  42. local Part = Brick:clone()
  43. Part.Parent = Model
  44. Part.CFrame = CFrame.new(BPos)
  45. BPos = BPos - Vector3.new(0,0,Brick.Size.z)
  46. end
  47. Pos = Pos - Vector3.new(Brick.Size.x,0,0)
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement