Dark_EccentricYT

Untitled

Jun 3rd, 2018
1,472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. -- For best use, use with "Grappling Hook(BEST)" and the "Fall Damage" script for best results (and best use)
  2.  
  3. for _, instance in pairs(game.Workspace:GetChildren()) do
  4. if (instance:IsA('Part')) then
  5. instance:Destroy();
  6. else if (instance:IsA('UnionOperation')) then
  7. instance:Destroy();
  8. else if (instance:IsA('Seat')) then
  9. instance:Destroy();
  10. else if (instance:IsA('VehicleSeat')) then
  11. instance:Destroy();
  12. else if (instance:IsA('TrussPart')) then
  13. instance:Destroy();
  14. else if (instance:IsA('WedgePart')) then
  15. instance:Destroy();
  16. else if (instance:IsA('CornerWedgePart')) then
  17. instance:Destroy();
  18. end
  19. end
  20. end
  21. end
  22. end
  23. end
  24. end
  25. end
  26.  
  27. kys = Instance.new("SpawnLocation")
  28. kys.Parent = game.Workspace
  29. kys.Position = Vector3.new(138.69, 14.22, 129.71)
  30. kys.CanCollide = false
  31. kys.Anchored = true
  32. kys.Transparency = 1
  33. kys.Size = Vector3.new(6,1,6)
  34. kysv2 = Instance.new("Part")
  35. kysv2.Parent = game.Workspace
  36. kysv2.Anchored = true
  37. kysv2.CanCollide = false
  38. kysv2.Size = Vector3.new(2,1.2,2)
  39. kysv3 = Instance.new("SpecialMesh")
  40. kysv3.Parent = kysv2
  41. kysv3.MeshId = "http://www.roblox.com/asset/?id=1527559"
  42. kysv3.MeshType = "FileMesh"
  43. kysv3.Scale = Vector3.new(-3500, -3500, -3500)
  44. game.Lighting.TimeOfDay ="1:00:00"
  45. game.Lighting.FogEnd = 100
  46. game.Lighting.FogColor = Color3.new(.88,.88,.88)
  47. asdv69 = Instance.new("Part")
  48. asdv69.Position = Vector3.new(461.135, 2995.981, 890.855)
  49. asdv69.Size = Vector3.new(1038.41, 20, 1816.79)
  50. asdv69.CanCollide = false
  51. asdv69.Anchored = true
  52. asdv69.Parent = game.workspace
  53. asdv69.Transparency = 1
  54. asa = Instance.new("ParticleEmitter", asdv69)
  55. asa.Acceleration = Vector3.new(0, -30, 0)
  56. asa.Rate = NumberRange.new(1e+006)
  57. asa.Lifetime = NumberRange.new(1,1000)
  58. asa.Rate = 1e+006
  59. asa.EmissionDirection = "Bottom"
  60.  
  61. myears = Instance.new('Sound')
  62. myears.Parent = game.Workspace
  63. myears.Looped = true
  64. myears.Name = "Moosic"
  65. myears.SoundId = "rbxassetid://167123203"
  66. myears.Volume = 1
  67. myears.PlaybackSpeed = .7
  68. myears.TimePosition = 0
  69. myears:Play()
  70.  
  71. model=Instance.new("Model")
  72. model.Name="Terra Mount"
  73. model.Parent=workspace
  74. nodes={
  75. {1,1,1,1,1,1,1,1,1,1}; --1
  76. {1,20,80,250,220,130,80,50,120,1}; --2
  77. {1,50,90,210,60,170,210,100,40,1}; --3
  78. {1,90,100,300,600,650,600,200,140,1}; --4
  79. {1,60,100,350,650,750,650,200,30,1}; --5
  80. {1,140,100,300,600,650,600,200,80,1}; --6
  81. {1,110,100,350,480,230,160,100,50,1}; --7
  82. {1,120,120,240,300,240,170,150,100,1}; --8
  83. {1,80,80,10,30,90,60,40,50,1}; --9
  84. {1,1,1,1,1,1,1,1,1,1}; --50
  85. }
  86. colorRange={}
  87. colorRange[0]="White"
  88. colorRange[70]="White"
  89. colorRange[80]="White"
  90. colorRange[90]="White"
  91. colorRange[20]="White"
  92. colorRange[40]="White"
  93. colorRange[60]="White"
  94. colorRange[80]="White"
  95. flat_bricks=true --keep this at true for now...
  96. width=100
  97. depth=100
  98. height=1000
  99. elevation=0
  100. function createTriangle(n1,n2,n3)
  101. local w1=Instance.new("WedgePart")
  102. w1.formFactor="Symmetric"
  103. w1.Anchored=true
  104. w1.Name="awxsd561"
  105. findingSolution=true
  106. while findingSolution do
  107. r=Ray.new(n1,(n3-n1).unit)
  108. d=r:ClosestPoint(n2)
  109. if (n1-d).magnitude>=(n1-n3).magnitude or (n3-d).magnitude>=(n3-n1).magnitude then
  110. local n=n1
  111. n1=n3
  112. n3=n2
  113. n2=n
  114. else
  115. findingSolution=false
  116. end
  117. end
  118. local pos=(n1:lerp(n2,.5))
  119. local v2=(n1:lerp(d,.5)-pos).unit*-1
  120. local v3=(n2:lerp(d,.5)-pos).unit
  121. local v1=(v2:Cross(v3))
  122. local y=(n2-d).magnitude
  123. local z=(n1-d).magnitude
  124. w1.Size=Vector3.new(2,math.ceil(y),math.ceil(z)) +Vector3.new(0,1,1)
  125. w1.CFrame=CFrame.new(pos.x,pos.y,pos.z,v1.x,v2.x,v3.x,v1.y,v2.y,v3.y,v1.z,v2.z,v3.z)
  126. highestVal=0
  127. for i,v in pairs(colorRange) do
  128. if i>=highestVal and (pos.y-elevation)/height*100/255>=i then
  129. highestVal=i
  130. end
  131. end
  132. w1.BrickColor=BrickColor.new(colorRange[highestVal])
  133. if flat_bricks then
  134. local m=Instance.new("SpecialMesh")
  135. m.MeshType="Wedge"
  136. m.Scale=Vector3.new(0,y/math.ceil(y),z/math.ceil(z))
  137. m.Parent=w1
  138. else
  139. w1.CFrame=w1.CFrame*CFrame.new(-.5,0,0)
  140. end
  141. local w2=Instance.new("WedgePart")
  142. w2.formFactor="Symmetric"
  143. w2.Name="awx"
  144. w2.Anchored=true
  145. local pos=(n3:lerp(n2,.5))
  146. local v2=(n3:lerp(d,.5)-pos).unit*-1
  147. local v3=(n2:lerp(d,.5)-pos).unit
  148. local v1=(v2:Cross(v3))
  149. local y=(n2-d).magnitude
  150. local z=(n3-d).magnitude
  151. w2.Size=Vector3.new(2,math.ceil(y),math.ceil(z)) +Vector3.new(0,1,1)
  152. w2.CFrame=CFrame.new(pos.x,pos.y,pos.z,v1.x,v2.x,v3.x,v1.y,v2.y,v3.y,v1.z,v2.z,v3.z)
  153. highestVal=0
  154. for i,v in pairs(colorRange) do
  155. if i>=highestVal and (pos.y-elevation)/height*100/255>=i then
  156. highestVal=i
  157. end
  158. end
  159. w2.BrickColor=BrickColor.new(colorRange[highestVal])
  160. if flat_bricks then
  161. local m=Instance.new("SpecialMesh")
  162. m.MeshType="Wedge"
  163. m.Scale=Vector3.new(0,y/math.ceil(y),z/math.ceil(z))
  164. m.Parent=w2
  165. else
  166. w2.CFrame=w2.CFrame*CFrame.new(.5,0,0)
  167. end
  168. w2.Parent=model
  169. w1.Parent=model
  170. end
  171. height=height/255
  172. startPos=Vector3.new(0,0,0)
  173. for a=1,#nodes-1 do
  174. for b=1,#nodes[a]-1 do
  175. createTriangle(Vector3.new((a+1)*width+startPos.x,nodes[a+1][b]*height+startPos.y,b*depth+startPos.z),Vector3.new(a*width+startPos.x,nodes[a][b]*height+startPos.y,b*depth+startPos.z),Vector3.new(a*width+startPos.x,nodes[a][b+1]*height+startPos.y,(b+1)*depth+startPos.z))
  176. createTriangle(Vector3.new(a*width+startPos.x,nodes[a][b+1]*height+startPos.y,(b+1)*depth+startPos.z),Vector3.new((a+1)*width+startPos.x,nodes[a+1][b+1]*height+startPos.y,(b+1)*depth+startPos.z),Vector3.new((a+1)*width+startPos.x,nodes[a+1][b]*height+startPos.y,b*depth+startPos.z))
  177. wait()
  178. end
  179. end
Add Comment
Please, Sign In to add comment