Advertisement
memberhero

raining rocks script?

Jan 21st, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Script3 = Instance.new("Script")
  23. Script4 = Instance.new("Script")
  24. Script5 = Instance.new("Script")
  25. Tool0.Name = "MeteorXP"
  26. Tool0.Parent = mas
  27. Part1.Name = "Handle"
  28. Part1.Parent = Tool0
  29. Part1.Transparency = 1
  30. Part1.Rotation = Vector3.new(-0.049999997, -14.2999992, -0.00999999978)
  31. Part1.RotVelocity = Vector3.new(1, 1, 1)
  32. Part1.FormFactor = Enum.FormFactor.Symmetric
  33. Part1.Size = Vector3.new(1, 1, 1)
  34. Part1.CFrame = CFrame.new(811.456299, 515.916565, 439.3526, 0.969032466, 0.000196625639, -0.246931955, -2.56283859e-21, 0.999999642, 0.000796274282, 0.246932015, -0.000771615712, 0.969032228)
  35. Part1.Position = Vector3.new(811.456299, 515.916565, 439.3526)
  36. Part1.Orientation = Vector3.new(-0.049999997, -14.2999992, 0)
  37. SpecialMesh2.Parent = Tool0
  38. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1290033"
  39. SpecialMesh2.Scale = Vector3.new(14, 14, 14)
  40. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=5971077"
  41. SpecialMesh2.VertexColor = Vector3.new(0, 2, 0)
  42. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  43. SpecialMesh2.Scale = Vector3.new(14, 14, 14)
  44. Script3.Name = "BOOSH"
  45. Script3.Parent = Tool0
  46. Script3.Disabled = true
  47. table.insert(cors,sandbox(Script3,function()
  48. can = true
  49.  
  50. function KABOOM(hit)
  51.  
  52. script.Parent.Velocity = Vector3.new(0,0,0)
  53.  
  54. if can and hit.Name~=script.Parent.Name then
  55.  
  56. can = false
  57.  
  58. script.Parent.BodyVelocity.velocity = Vector3.new(0,-350,0)
  59.  
  60. script.Parent.Parent.Falling:Stop()
  61. script.Parent.Parent.Crash:Play()
  62. script.Parent.BodyAngularVelocity:Remove()
  63. p = Instance.new("Explosion")
  64. p.BlastRadius = script.Parent.Size.y*1.5
  65. p.BlastPressure=p.BlastPressure*2
  66. p.Parent = game.Workspace
  67. p.Position = script.Parent.Position
  68.  
  69. r = Instance.new("Part")
  70. r.Anchored = false
  71. r.Name = "EXPLOSIVE RING"
  72. r.formFactor = "Plate"
  73. r.TopSurface = 0
  74. r.BottomSurface = 0
  75. r.Transparency = 1
  76. r.CanCollide = false
  77. r.Size = Vector3.new(5,.4,5)
  78. r.CFrame = CFrame.new(script.Parent.Position)
  79. r.Parent = game.Workspace
  80. p=Instance.new("BodyPosition")
  81. p.P=3000
  82. p.maxForce=Vector3.new(0,5000000000000000000000000000000000000,0)*50000
  83. p.position=r.Position
  84. p.Parent=r
  85.  
  86. d = Instance.new("Decal")
  87. d.Texture = "http://www.roblox.com/asset/?id=26356398"
  88. d.Face = "Top"
  89. d.Parent = r
  90.  
  91. d = Instance.new("Decal")
  92. d.Texture = "http://www.roblox.com/asset/?id=26356398"
  93. d.Face = "Bottom"
  94. d.Parent = r
  95.  
  96. s = script.RING:clone()
  97. s.Disabled = false
  98. s.Parent = r
  99.  
  100. wait(3)
  101.  
  102. script.Parent.Parent:Remove()
  103.  
  104. end
  105.  
  106. end
  107.  
  108. script.Parent.Touched:connect(KABOOM)
  109.  
  110. end))
  111. Script4.Name = "RING"
  112. Script4.Parent = Script3
  113. Script4.Disabled = true
  114. table.insert(cors,sandbox(Script4,function()
  115. function kill(hit)
  116.  
  117. h = hit.Parent:FindFirstChild("Humanoid")
  118.  
  119. if h~=nil then
  120.  
  121. h.Health = h.Health-2
  122.  
  123. end
  124.  
  125. end
  126.  
  127. script.Parent.Touched:connect(kill)
  128.  
  129. c = script.Parent.CFrame
  130.  
  131. for i=1, 40 do
  132.  
  133.  
  134. script.Parent.Size = script.Parent.Size+Vector3.new(2,0,2)
  135. script.Parent.CFrame = c*CFrame.fromEulerAnglesXYZ(0,math.pi/20*i,0)
  136.  
  137. wait()
  138.  
  139. end
  140.  
  141. script.Parent:Remove()
  142.  
  143. end))
  144. Script5.Parent = Tool0
  145. table.insert(cors,sandbox(Script5,function()
  146. f1 = Instance.new("Sound")
  147. f1.SoundId = "http://www.roblox.com/asset/?id=3086666"
  148. f1.Volume = 1
  149. f1.Pitch=2
  150. f1.Name = "Falling"
  151.  
  152. f2 = Instance.new("Sound")
  153. f2.SoundId = "http://www.roblox.com/asset/?id=3087031"
  154. f2.Volume = 2
  155. f2.Name = "Crash"
  156.  
  157. deb = true
  158.  
  159. function Fire()
  160.  
  161. if not deb then return end
  162.  
  163. deb = false
  164.  
  165. script.Parent.Name = "MeteorXP(R)"
  166.  
  167. for i=1, 4 do
  168.  
  169. Look = script.Parent.Parent.Torso.CFrame.lookVector
  170. Offset=Vector3.new(math.random(-200,200),0,math.random(-200,200))
  171. Pos = script.Parent.Parent.Humanoid.TargetPoint+Vector3.new(0,565,0)+Offset
  172.  
  173. m = Instance.new("Model")
  174. m.Name = "METEOR!"
  175. m.Parent = game.Workspace
  176.  
  177. p = Instance.new("Part")
  178. p.Shape = 0
  179. p.Size = Vector3.new(12,12,12)
  180. p.TopSurface = 0
  181. p.BottomSurface = 0
  182. p.Friction = .5
  183. p.Elasticity = 0
  184. p.BrickColor = BrickColor:Black()
  185. p.Position = Pos
  186. p.Parent = m
  187.  
  188. script.Parent.Mesh:clone().Parent = p
  189.  
  190. f = Instance.new("BodyVelocity")
  191. f.maxForce = Vector3.new(9999999999999999999999999999999999999999999999,999999999999999999999999999999999999999999999,9999999999999999999999999999999999999999999999)
  192. f.velocity = -(p.Position-script.Parent.Parent.Humanoid.TargetPoint).unit*math.random(200,300)+Vector3.new(math.random(-70,70),0,math.random(-70,70))/2
  193. f.Parent = p
  194.  
  195. r = Instance.new("BodyAngularVelocity")
  196. r.angularvelocity = Vector3.new(0,math.random(-100,100),0)
  197. r.maxTorque = Vector3.new(99999999999999999999999,9999999999999999999999,9999999999999999999999999999)
  198. r.Parent = p
  199.  
  200. f = f1:clone()
  201. f.Parent = m
  202. f:Play()
  203.  
  204. f = f2:clone()
  205. f.Parent = m
  206. f:Stop()
  207.  
  208. s = script.Parent.BOOSH:clone()
  209. s.Disabled = false
  210. s.Parent = p
  211.  
  212. wait(.075)
  213.  
  214. end
  215.  
  216. deb = true
  217.  
  218. script.Parent.Name = "MeteorXP"
  219.  
  220. end
  221.  
  222. script.Parent.Activated:connect(Fire)
  223.  
  224.  
  225. end))
  226. for i,v in pairs(mas:GetChildren()) do
  227. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  228. pcall(function() v:MakeJoints() end)
  229. end
  230. mas:Destroy()
  231. for i,v in pairs(cors) do
  232. spawn(function()
  233. pcall(v)
  234. end)
  235. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement