Upscalefanatic3

Population Arctic

Oct 3rd, 2016
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. while true do
  2. grass = {}
  3.  
  4. pcall(function() workspace.Base.Terrainstorage:remove() end)
  5.  
  6. local model = Instance.new("Model", workspace.Base)
  7. model.Name = "Terrainstorage"
  8.  
  9. for i = 1,20 do
  10. for x = 1,20 do
  11. local part = Instance.new("Part", model)
  12. part.BrickColor = BrickColor.new("Pastel light blue")
  13. part.Anchored = true
  14. part.TopSurface = "Smooth"
  15. part.BottomSurface = "Smooth"
  16. part.formFactor = "Custom"
  17. part.Size = Vector3.new(2, 1, 2)
  18. part.CFrame = CFrame.new(x*2,1,i*2)
  19. local partm = Instance.new("BlockMesh", part)
  20. wait()
  21. end
  22. end
  23.  
  24. for i = 1,5 do
  25. thing = model:GetChildren()[math.random(1,400)]
  26. thing.BrickColor = BrickColor.new("Institutional white")
  27. table.insert(grass, thing)
  28. end
  29.  
  30. for i = 1,math.random(1,3) do --how much it spreads
  31. for a = 1,#grass do
  32. for _,o in pairs(model:children()) do
  33. if o:IsA("Part") and (o.Position - grass[a].Position).magnitude <= math.random(2,4) then --change # to that size of bricks, then size of bricks*2
  34. o.BrickColor = BrickColor.new("Institutional white")
  35. table.insert(grass, o) --allows spreading to continue
  36. end
  37. end
  38. wait()
  39. end
  40. wait()
  41. end
  42.  
  43. for _,o in pairs(model:children()) do
  44. if o.BrickColor == BrickColor.new("Institutional white") then
  45. o.CFrame = o.CFrame + Vector3.new(0, math.random(1,9)/10, 0)
  46. end
  47. wait()
  48. end
  49.  
  50. for _,o in pairs(model:children()) do
  51. if o.BrickColor == BrickColor.new("Institutional white") then
  52. asdf = math.random(1, 6)
  53. if asdf == 1 then
  54. local trunk = Instance.new("Part")
  55. trunk.Parent = o
  56. trunk.formFactor = "Custom"
  57. trunk.BrickColor = BrickColor.new("Reddish brown")
  58. trunk.Size = Vector3.new(0.35, 1.5, 0.35)
  59. trunk.Anchored = true
  60. trunk.CFrame = o.CFrame + Vector3.new(0, 1, 0)
  61. local trunkm = Instance.new("CylinderMesh", trunk)
  62. trunkm.Scale = Vector3.new(0.5, 1, 0.5)
  63. local leaves = Instance.new("Part")
  64. leaves.Parent = o
  65. leaves.formFactor = "Custom"
  66. leaves.BrickColor = BrickColor.new("Institutional white")
  67. leaves.Size = Vector3.new(0.35, 1, 0.35)
  68. leaves.Anchored = true
  69. leaves.CFrame = o.CFrame + Vector3.new(0, 1.5, 0)
  70. local leavsm = Instance.new("SpecialMesh", leaves)
  71. leavsm.MeshType = "Sphere"
  72. leavsm.Scale = Vector3.new(2, 0.75, 2)
  73. end
  74. if asdf == 2 then
  75. local trunk = Instance.new("Part")
  76. trunk.Parent = o
  77. trunk.formFactor = "Custom"
  78. trunk.BrickColor = BrickColor.new("Institutional white")
  79. trunk.Size = Vector3.new(1, 1, 1)
  80. trunk.Anchored = true
  81. trunk.CFrame = o.CFrame + Vector3.new(0, 0.75, 0)
  82. local trunkm = Instance.new("CylinderMesh", trunk)
  83. trunkm.Scale = Vector3.new(1, 1, 1)
  84. local leaves = Instance.new("Part")
  85. leaves.Parent = o
  86. leaves.formFactor = "Custom"
  87. leaves.BrickColor = BrickColor.new("Institutional white")
  88. leaves.Size = Vector3.new(1, 0.5, 1)
  89. leaves.Anchored = true
  90. leaves.CFrame = o.CFrame + Vector3.new(0, 1.25, 0)
  91. local leavsm = Instance.new("SpecialMesh", leaves)
  92. leavsm.MeshType = "Sphere"
  93. leavsm.Scale = Vector3.new(1, 1, 1)
  94. local door = Instance.new("Part")
  95. door.Parent = o
  96. door.formFactor = "Custom"
  97. door.BrickColor = BrickColor.new("Reddish brown")
  98. door.Size = Vector3.new(0.75, 1, 0.75)
  99. door.Anchored = true
  100. door.CFrame = o.CFrame + Vector3.new(0, 0.5, 0.3)
  101. local doorm = Instance.new("BlockMesh", door)
  102. doorm.Scale = Vector3.new(0.5, 1, 0.5)
  103. end
  104. end
  105. wait()
  106. end
  107.  
  108. wait(10)
  109. end
Add Comment
Please, Sign In to add comment