Advertisement
Animescapetower

Untitled

Jun 13th, 2018
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. -- this nuclear bomb will kill if close
  2. -- PLEASE DO NOT ABUSE WITH IT
  3.  
  4. --Converted with ttyyuu12345's model to script plugin v4
  5. function sandbox(var,func)
  6. local env = getfenv(func)
  7. local newenv = setmetatable({},{
  8. __index = function(self,k)
  9. if k=="script" then
  10. return var
  11. else
  12. return env[k]
  13. end
  14. end,
  15. })
  16. setfenv(func,newenv)
  17. return func
  18. end
  19. cors = {}
  20. mas = Instance.new("Model",game:GetService("Lighting"))
  21. Model0 = Instance.new("Model")
  22. Model1 = Instance.new("Model")
  23. Part2 = Instance.new("Part")
  24. Part3 = Instance.new("Part")
  25. SpecialMesh4 = Instance.new("SpecialMesh")
  26. Script5 = Instance.new("Script")
  27. Script6 = Instance.new("Script")
  28. Script7 = Instance.new("Script")
  29. Model0.Name = "MushRoomCloud"
  30. Model0.Parent = mas
  31. Model1.Name = "Explosion"
  32. Model1.Parent = Model0
  33. Part2.Name = "BLAST"
  34. Part2.Parent = Model1
  35. Part2.Material = Enum.Material.Neon
  36. Part2.BrickColor = BrickColor.new("New Yeller")
  37. Part2.Transparency = 1
  38. Part2.Anchored = true
  39. Part2.CanCollide = false
  40. Part2.Shape = Enum.PartType.Ball
  41. Part2.Size = Vector3.new(4, 4, 4)
  42. Part2.CFrame = CFrame.new(35.3600006, 0.310742319, 133.229996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  43. Part2.BottomSurface = Enum.SurfaceType.Smooth
  44. Part2.TopSurface = Enum.SurfaceType.Smooth
  45. Part2.Color = Color3.new(1, 1, 0)
  46. Part2.Position = Vector3.new(35.3600006, 0.310742319, 133.229996)
  47. Part2.Color = Color3.new(1, 1, 0)
  48. Part3.Name = "Cloud"
  49. Part3.Parent = Part2
  50. Part3.BrickColor = BrickColor.new("Light stone grey")
  51. Part3.Transparency = 1
  52. Part3.Rotation = Vector3.new(0.0199999996, 90, 0)
  53. Part3.Anchored = true
  54. Part3.FormFactor = Enum.FormFactor.Custom
  55. Part3.Size = Vector3.new(1, 34.6000175, 4)
  56. Part3.CFrame = CFrame.new(28.0921631, 17.3004322, 144.115662, 3.35276127e-08, 0.000127734078, 1, 0.000328166294, 0.99999994, -0.000127734107, -1, 0.000328166265, -7.4505806e-09)
  57. Part3.BottomSurface = Enum.SurfaceType.Smooth
  58. Part3.TopSurface = Enum.SurfaceType.Smooth
  59. Part3.Color = Color3.new(0.898039, 0.894118, 0.87451)
  60. Part3.Position = Vector3.new(28.0921631, 17.3004322, 144.115662)
  61. Part3.Orientation = Vector3.new(0.00999999978, 90, 0.0199999996)
  62. Part3.Color = Color3.new(0.898039, 0.894118, 0.87451)
  63. SpecialMesh4.Parent = Part3
  64. SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=153994027"
  65. SpecialMesh4.Scale = Vector3.new(5, 5, 5)
  66. SpecialMesh4.TextureId = "http://www.roblox.com/asset/?id=153994115"
  67. SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  68. SpecialMesh4.Scale = Vector3.new(5, 5, 5)
  69. Script5.Name = "Deadly"
  70. Script5.Parent = Part2
  71. table.insert(cors,sandbox(Script5,function()
  72. function onTouched(hit)
  73. local human = hit.Parent:findFirstChild("Humanoid")
  74. if (human ~= nil) then
  75. human.Health = human.Health - 4
  76. elseif script.Parent.Transparency > 1 then
  77. script.Disabled = true
  78.  
  79. end
  80. end
  81.  
  82. --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  83. -- connection = script.Parent.Touched:connect(onTouched)
  84. --end -- Grass Troll by RangeMeludE --
  85. script.Parent.Touched:connect(onTouched)
  86.  
  87. end))
  88. Script6.Parent = Model0
  89. table.insert(cors,sandbox(Script6,function()
  90.  
  91. stop = true
  92. brick = script.Parent.Explosion.BLAST
  93.  
  94. for n = 1,32 do
  95. wait()
  96. cc = game.Lighting
  97. cc.Brightness = cc.Brightness + 0.01
  98.  
  99. end
  100.  
  101.  
  102. for n1 = 1,54 do
  103. wait()
  104.  
  105.  
  106.  
  107. brick.Transparency = brick.Transparency - 0.01
  108.  
  109.  
  110. end
  111.  
  112. for n1 = 1,140 do
  113. wait()
  114.  
  115.  
  116. brick.Size =brick.Size + Vector3.new(2,2,2)
  117.  
  118.  
  119.  
  120. end
  121.  
  122. for n1 = 1,200 do
  123. wait()
  124.  
  125. brick.Cloud.Transparency = brick.Cloud.Transparency - 0.01
  126. brick.Cloud.Mesh.Scale =brick.Cloud.Mesh.Scale + Vector3.new(0.14,0.14,0.14)
  127. brick.Cloud.Mesh.Offset =brick.Cloud.Mesh.Offset + Vector3.new(0,0.31,0)
  128. brick.Cloud.Mesh.VertexColor = brick.Cloud.Mesh.VertexColor - Vector3.new(0.1,0.1,0.1)
  129.  
  130.  
  131. end
  132.  
  133. cl = script.Script:Clone()
  134. cl.Disabled =false
  135. cl.Parent = brick.Cloud
  136. for n1 = 1,140 do
  137. wait()
  138.  
  139.  
  140. brick.Transparency = brick.Transparency + 0.01
  141.  
  142.  
  143.  
  144. end
  145. stop = true
  146. for n2 = 1,32 do
  147. wait()
  148. cc = game.Lighting
  149. cc.Brightness = cc.Brightness - 0.01
  150. end
  151. wait(7)
  152. for n1 = 1,190 do
  153. wait()
  154.  
  155.  
  156. brick.Cloud.Transparency =brick.Cloud.Transparency + 0.01
  157.  
  158.  
  159.  
  160.  
  161. end
  162.  
  163. for n0 = 1,140 do
  164. wait()
  165.  
  166.  
  167. brick.Size =brick.Size - Vector3.new(2,2,2)
  168.  
  169.  
  170. end
  171. brick:Destroy()
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178. end))
  179. Script7.Parent = Script6
  180. Script7.Disabled = true
  181. table.insert(cors,sandbox(Script7,function()
  182. local hole = script.Parent
  183. local childList = {}
  184.  
  185. local massConstant = 9.5
  186.  
  187. local mass = 19800 * massConstant
  188.  
  189.  
  190. function checkObject(obj)
  191. if (obj ~= hole) and (obj.className == "Part") then
  192. if (obj.Anchored == false) then
  193. table.insert(childList, 1, obj)
  194. end
  195. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  196. local child = obj:GetChildren()
  197. for x = 1, #child do
  198. checkObject(child[x])
  199. end
  200. obj.ChildAdded:connect(checkObject)
  201. end
  202. end
  203.  
  204. checkObject(workspace)
  205.  
  206. print("Black Hole script loaded.")
  207.  
  208. local n = 0
  209. while true do
  210. if n < #childList then
  211. n = n + 1
  212. if n % 800 == 0 then
  213. wait()
  214. end
  215. else
  216. n = 1
  217. wait()
  218. end
  219.  
  220. local child = childList[n]
  221. if (child ~= hole) and (child.className == "Part") and (child.Anchored == false) then
  222. local relPos = hole.Position - child.Position
  223. local motivator = child:FindFirstChild("BlackHole Influence")
  224. if relPos.magnitude * 240 * massConstant < mass then
  225. child:BreakJoints()
  226. if (relPos.magnitude * 320 * massConstant < mass) and (child.Size.z + hole.Size.x > relPos.magnitude * 2 - 4) then
  227. mass = mass + child:GetMass()
  228. child:Remove()
  229. table.remove(childList, n)
  230. n = n - 1
  231. else
  232. child.CanCollide = false
  233. if motivator == nil then
  234. motivator = Instance.new("BodyPosition")
  235. motivator.Parent = child
  236. motivator.Name = "BlackHole Influence"
  237. end
  238. motivator.position = hole.Position
  239. motivator.maxForce = Vector3.new(1, 1, 1) * mass * child:GetMass() / (relPos.magnitude * massConstant)
  240. end
  241. elseif motivator ~= nil then
  242. motivator:Remove()
  243. end
  244. end
  245. end
  246. end))
  247. for i,v in pairs(mas:GetChildren()) do
  248. v.Parent = workspace
  249. pcall(function() v:MakeJoints() end)
  250. end
  251. mas:Destroy()
  252. for i,v in pairs(cors) do
  253. spawn(function()
  254. pcall(v)
  255. end)
  256. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement