Dark_EccentricYT

Untitled

May 28th, 2018
3,080
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. Pos = Vector3.new(0, 0, 0)
  2. Scale = 1
  3.  
  4. Colors = {
  5. Land = "Earth green",
  6. Water = "Navy blue",
  7. Material = "Dark grey",
  8. Wood = "Reddish brown",
  9. }
  10.  
  11. Naim = "Mapx"
  12.  
  13. V3 = Vector3.new
  14. C3 = Color3.new
  15. V2 = Vector2.new
  16. CN = CFrame.new
  17. CA = CFrame.Angles
  18. BN = BrickColor.new
  19. MR = math.rad
  20. MRA = math.random
  21. MP = math.pi
  22.  
  23. Part = function(Type, Parent, Anchor, Collide, Trans, Ref, Bri, Size)
  24. local a = "Part"
  25. if Type == 2 then
  26. a = "WedgePart"
  27. else
  28. a = "Part"
  29. end
  30. local p = Instance.new(a)
  31. p.TopSurface = 0
  32. p.BottomSurface = 0
  33. p.Anchored = Anchor
  34. p.CanCollide = Collide
  35. p.Transparency = Trans
  36. p.Reflectance = Ref
  37. p.formFactor = "Custom"
  38. p.BrickColor = Bri
  39. p.Size = Size
  40. p.Parent = Parent
  41. p:breakJoints()
  42. return p
  43. end
  44.  
  45. for _,v in pairs(workspace:children()) do
  46. if v.Name == Naim then
  47. v:remove()
  48. end
  49. end
  50.  
  51. Map = Instance.new("Model")
  52. Map.Name = Naim
  53.  
  54. Base1 = Part(2, Map, true, true, 0, 0, BN(Colors.Land), V3(20*Scale, 400*Scale, 400*Scale))
  55. Base1.CFrame = CN(Pos) * CN(0, -10*Scale, 0) * CA(0, 0, MR(90)) * CN(0, -9*Scale, 9*Scale)
  56. Base1.Material = "Grass"
  57.  
  58. Base2 = Part(2, Map, true, true, 0, 0, BN(Colors.Land), V3(20*Scale, 400*Scale, 400*Scale))
  59. Base2.CFrame = CN(Pos) * CN(0, -10*Scale, 0) * CA(0, MR(-90), MR(-90)) * CN(0, -9*Scale, 9*Scale)
  60. Base2.Material = "Grass"
  61.  
  62. local river = Part(1, Map, true, true, 0, 0, BN(Colors.Land), V3(30*Scale, 2*Scale, 565*Scale))
  63. river.CFrame = CN(Pos) * CN(0, -15*Scale, 0) * CA(0, MR(-45), 0)
  64.  
  65. for i = 0, 12, 1 do
  66. local water = Part(1, Map, true, false, 0.4, 0, BN(Colors.Water), V3(1, 1, 1))
  67. water.CFrame = CN(Pos) * CN(0, (-15+i)*Scale, 0) * CA(0, MR(-45), 0)
  68. Instance.new("BlockMesh",water).Scale = V3(30*Scale, 1*Scale, 565*Scale)
  69. end
  70.  
  71. for i = 0, 300, 60 do
  72. if i == 60 or i == 240 then
  73. local p = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(15*Scale, 20*Scale, 2*Scale))
  74. p.CFrame = CN(Pos) * CN(0, 10*Scale, 0) * CA(0, MR(i-15), 0) * CN(-20*Scale, 0, (-47*Scale))
  75. local p2 = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(15*Scale, 20*Scale, 2*Scale))
  76. p2.CFrame = CN(Pos) * CN(0, 10*Scale, 0) * CA(0, MR(i-15), 0) * CN(20*Scale, 0, (-47*Scale))
  77. local p3 = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(25.5*Scale, 10*Scale, 2*Scale))
  78. p3.CFrame = CN(Pos) * CN(0, 15*Scale, 0) * CA(0, MR(i-15), 0) * CN(0, 0, (-47*Scale))
  79. p.Material = "Slate" p2.Material = "Slate" p3.Material = "Slate"
  80. else
  81. local p = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(55*Scale, 20*Scale, 2*Scale))
  82. p.CFrame = CN(Pos) * CN(0, 10*Scale, 0) * CA(0, MR(i-15), 0) * CN(0, 0, (-47*Scale))
  83. p.Material = "Slate"
  84. end
  85. local p = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(55*Scale, 2*Scale, 11*Scale))
  86. p.CFrame = CN(Pos) * CN(0, 17.5*Scale, 0) * CA(0, MR(i-15), 0) * CN(0, 0, (-41*Scale))
  87. p.Material = "Slate"
  88. for x = -27, 27, 8 do
  89. local p2 = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(4*Scale, 3*Scale, 2.5*Scale))
  90. p2.CFrame = CN(Pos) * CN(0, 20.5*Scale, 0) * CA(0, MR(i-15), 0) * CN(x*Scale, 0, (-48*Scale))
  91. p2.Material = "Slate"
  92. end
  93. end
  94.  
  95. for i = 0, 300, 60 do
  96. if i == 60 or i == 240 then
  97. local p = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(11*Scale, 20*Scale, 2*Scale))
  98. p.CFrame = CN(Pos) * CN(0, 10*Scale, 0) * CA(0, MR(i-15), 0) * CN(-15.5*Scale, 0, (-35*Scale))
  99. local p2 = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(11*Scale, 20*Scale, 2*Scale))
  100. p2.CFrame = CN(Pos) * CN(0, 10*Scale, 0) * CA(0, MR(i-15), 0) * CN(15.5*Scale, 0, (-35*Scale))
  101. local p3 = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(25.5*Scale, 10*Scale, 2*Scale))
  102. p3.CFrame = CN(Pos) * CN(0, 15*Scale, 0) * CA(0, MR(i-15), 0) * CN(0, 0, (-35*Scale))
  103. p2.Material = "Slate"
  104. p3.Material = "Slate"
  105. p.Material = "Slate"
  106. for x = -15, 15, 30 do
  107. for x2 = -2, 2, 4 do
  108. local p4 = Part(1, Map, true, true, 0, 0, BN(Colors.Wood), V3(1*Scale, 21*Scale, 1*Scale))
  109. p4.CFrame = CN(Pos) * CN(0, 10.5*Scale, 0) * CA(0, MR(i-15), 0) * CN((x*Scale)+(x2*Scale), 0, (-33.5*Scale))
  110. p4.Material = "Wood"
  111. end
  112. for y = 1, 20, 1.8 do
  113. local p4 = Part(1, Map, true, true, 0, 0, BN(Colors.Wood), V3(3.5*Scale, 0.9*Scale, 1*Scale))
  114. p4.CFrame = CN(Pos) * CN(0, y*Scale, 0) * CA(0, MR(i-15), 0) * CN(x*Scale, 0, (-34*Scale))
  115. p4.Material = "Wood"
  116. end
  117. end
  118. else
  119. local p = Part(1, Map, true, true, 0, 0, BN(Colors.Material), V3(41*Scale, 20*Scale, 2*Scale))
  120. p.CFrame = CN(Pos) * CN(0, 10*Scale, 0) * CA(0, MR(i-15), 0) * CN(0, 0, (-35*Scale))
  121. p.Material = "Slate"
  122. end
  123. local p = Part(1, Map, true, true, 0, 0, BN(Colors.Wood), V3(55*Scale, 1*Scale, 12*Scale))
  124. p.CFrame = CN(Pos) * CN(0, 0, 0) * CA(0, MR(i-15), 0) * CN(0, 0, (-41*Scale))
  125. p.Material = "Wood"
  126. end
  127.  
  128. Map.Parent = workspace
  129.  
  130. pcall(function() workspace.Base:remove() end)
Add Comment
Please, Sign In to add comment