Axeuer

Untitled

Aug 5th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Model0 = Instance.new("Model")
  19. Humanoid1 = Instance.new("Humanoid")
  20. Part2 = Instance.new("Part")
  21. CylinderMesh3 = Instance.new("CylinderMesh")
  22. Part4 = Instance.new("Part")
  23. CylinderMesh5 = Instance.new("CylinderMesh")
  24. Script6 = Instance.new("Script")
  25. Model0.Name = " "
  26. Model0.Parent = mas
  27. Humanoid1.Parent = Model0
  28. Humanoid1.Health = 0
  29. Humanoid1.MaxHealth = 0
  30. Part2.Parent = Model0
  31. Part2.BrickColor = BrickColor.new("Dark stone grey")
  32. Part2.Reflectance = 0.5
  33. Part2.Anchored = true
  34. Part2.Size = Vector3.new(5, 1.20000005, 5)
  35. Part2.CFrame = CFrame.new(-26.8999996, 0.600005269, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  36. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  37. Part2.Position = Vector3.new(-26.8999996, 0.600005269, -16.4399662)
  38. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  39. CylinderMesh3.Parent = Part2
  40. Part4.Name = "Head"
  41. Part4.Parent = Model0
  42. Part4.BrickColor = BrickColor.new("Really red")
  43. Part4.Anchored = true
  44. Part4.Size = Vector3.new(5, 1.20000005, 5)
  45. Part4.CFrame = CFrame.new(-26.8999996, 1.80000603, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  46. Part4.Color = Color3.new(1, 0, 0)
  47. Part4.Position = Vector3.new(-26.8999996, 1.80000603, -16.4399662)
  48. Part4.Color = Color3.new(1, 0, 0)
  49. CylinderMesh5.Parent = Part4
  50. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  51. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  52. Script6.Parent = Part4
  53. table.insert(cors,sandbox(Script6,function()
  54. local ONOES = Instance.new("Sound")
  55. ONOES.SoundId = "rbxassetid://199837904"
  56. ONOES.Volume = 10
  57. ONOES.EmitterSize = math.huge
  58. ONOES.Looped = false
  59. ONOES.archivable = false
  60. ONOES.Parent = workspace
  61.  
  62. --game:GetService("Debris").MaxItems = 350 -- Decrease if you have a laggy computer
  63. local s = Instance.new("Sound")
  64. s.Volume = 10
  65. s.EmitterSize = math.huge
  66. sounds = {"rbxasset://sounds\\rocket shot.wav", "rbxasset://sounds\\collide.wav"}
  67. local workspace = game.Workspace
  68.  
  69. function check(object)
  70.  
  71. if object.className == "Model" and object:findFirstChild("Humanoid") == nil then
  72. for i, v in ipairs(object:getChildren()) do
  73. check(v)
  74. wait()
  75. end
  76. end
  77. if object:IsA("Part") then
  78. local soundclone = s:Clone()
  79. soundclone.SoundId = sounds[math.random(1, 2)]
  80. game:GetService("Debris"):AddItem(object, 300)
  81. soundclone.Pitch = math.random(9, 12)/10
  82. soundclone.Parent = object
  83. delay(0.1, function() soundclone:Play() end)
  84. delay(0, function()
  85. for i = 1, 15*1.5 do
  86. local Model = Instance.new("Model",workspace)
  87. local Cloud1 = Instance.new("Part")
  88. local Cloud2 = Instance.new("Part")
  89. local Cloud1Mesh = Instance.new("SpecialMesh")
  90. local Cloud2Mesh = Instance.new("SpecialMesh")
  91. local Sound = Instance.new("Sound",workspace)
  92. local sky = Instance.new("Sky")
  93. NUKE_COLOR = 24 --Only BrickColor codes.
  94. CLOUD_TRANSPARENCY = 0.25
  95.  
  96. wait(0.001)
  97.  
  98. function radiation(hit)
  99. local h = hit.Parent:findFirstChild("Humanoid")
  100. local DAMAGE = 10
  101. if h~=nil then
  102. h.WalkSpeed = 5
  103. h.Parent["Right Leg"]:Destroy()
  104. h.Parent["Left Arm"]:Destroy()
  105. for i =1,h.MaxHealth do
  106. h.Health = h.Health - DAMAGE
  107. wait(1)
  108. end
  109. end
  110. end
  111. function unanchor (m)
  112. for _,i in pairs (m:GetChildren()) do
  113. if i:IsA("Part","Model","Union","WedgePart","CornerWedgePart") then
  114. -- i.Anchored = false
  115. local Fire = Instance.new("Fire")
  116. Fire.Parent = i
  117. Fire.Size = math.random(5,10)
  118. i.Material = "CorrodedMetal"
  119. i:BreakJoints()
  120. i.BrickColor = BrickColor.new(26)
  121. i.Touched:connect(radiation)
  122.  
  123. else
  124. unanchor(i)
  125. end
  126. end
  127. end
  128. unanchor(game.Workspace)
  129.  
  130. Sound.SoundId = "http://www.roblox.com/asset?id=2248511"
  131. Sound.PlaybackSpeed = 0.2
  132. Sound.Playing = true
  133. Sound.Volume = 10
  134.  
  135. Model.Name = "Mushroom Cloud"
  136. Cloud1.Parent = Model
  137. Cloud1.Anchored = true
  138. Cloud1.CanCollide = false
  139. Cloud1.Locked = true
  140. Cloud1Mesh.Parent = Cloud1
  141. Cloud1Mesh.MeshType = "FileMesh"
  142. Cloud1Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  143. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(95,300,195) --1999
  144. Cloud2.Parent = Model
  145. Cloud2.Anchored = true
  146. Cloud2.CanCollide = false
  147. Cloud2.Locked = true
  148. Cloud2.Position = Cloud2.Position + Vector3.new(0,587,0)
  149. Cloud2Mesh.Parent = Cloud2
  150. Cloud2Mesh.MeshType = "FileMesh"
  151. Cloud2Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  152. Cloud2Mesh.Scale = Cloud2Mesh.Scale + Vector3.new(399,399,649)
  153. Cloud1.Transparency = CLOUD_TRANSPARENCY
  154. Cloud2.Transparency = CLOUD_TRANSPARENCY
  155. Cloud1.BrickColor = BrickColor.new(NUKE_COLOR)
  156. Cloud2.BrickColor = BrickColor.new(NUKE_COLOR)
  157. sky.Parent = game.Lighting
  158. sky.Name = "NukeSky"
  159. sky.CelestialBodiesShown = true
  160. sky.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1012890"
  161. sky.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1012891"
  162. sky.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1012887"
  163. sky.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1012889"
  164. sky.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1012888"
  165. sky.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014449"
  166. explosion = Instance.new("Explosion")
  167. explosion.Parent = game.Workspace
  168. explosion.BlastRadius = 9999999999999
  169. explosion.BlastPressure = 10000000
  170. game.Lighting.Brightness = 999
  171. game.Lighting.OutdoorAmbient = Color3.new(1,0,0)
  172. wait (1) --Fireball
  173. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --200
  174. wait (0.25)
  175. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --400
  176. wait (0.25)
  177. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --600
  178. wait (0.25)
  179. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --800
  180. wait (0.25)
  181. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1000
  182. wait (0.25)
  183. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1200
  184. wait (0.25)
  185. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1400
  186. wait (0.25)
  187. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1600
  188. wait (0.25)
  189. Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,100,0) --1700
  190. wait (30) --End phase of the nuke
  191. game.Lighting.Ambient = Color3.new(0,0,0)
  192. game.Lighting.OutdoorAmbient = Color3.new(127 / 255,127 / 255,127 / 255)
  193. sky:Destroy()
  194. game.Lighting.Brightness = 1
  195. Cloud1.BrickColor = BrickColor.new(1)
  196. Cloud2.BrickColor = BrickColor.new(1)
  197. Cloud1.Transparency = 0.6
  198. Cloud2.Transparency = 0.6
  199. wait (5)
  200. Cloud1.Transparency = 0.7
  201. Cloud2.Transparency = 0.7
  202. wait (5)
  203. Cloud1.Transparency = 0.8
  204. Cloud2.Transparency = 0.8
  205. wait (5)
  206. Cloud1.Transparency = 0.9
  207. Cloud2.Transparency = 0.9
  208. wait (120)
  209. Cloud1:Destroy()
  210. Cloud2:Destroy()
  211. --BrickColor codes: http://wiki.roblox.com/index.php?title=BrickColor_codes
  212. local e = Instance.new("Explosion")
  213. e.Parent = workspace
  214. e.BlastPressure = 1e4*object:getMass()
  215. e.Position = object.Position
  216. object.Anchored = true
  217. object:BreakJoints()
  218. wait(1.5)
  219. end
  220. end)
  221.  
  222. end
  223. end
  224.  
  225. local deb = true
  226. script.Parent.Touched:connect(function(hit)
  227. if not deb then return end
  228. deb = false
  229. ONOES:Play()
  230. script.Parent.Parent.Name = ""
  231. local c = script.Parent.CFrame
  232. for i = 0, 1, 0.05 do
  233. script.Parent.CFrame = c - Vector3.new(0, i, 0)
  234. wait()
  235. end
  236. local m = Instance.new("Message")
  237. m.Text = "TACTICAL NUKE INCOMING!!"
  238. m.Parent = workspace
  239. local color = game.Lighting.Ambient
  240. delay(0, function()
  241. while true do
  242. game.Lighting.Brightness = 2
  243. game.Lighting.Ambient = Color3.new(100, 0, 0)
  244. game.Lighting.ColorShift_Top = Color3.new(1, 0, 0)
  245. game.Lighting.ColorShift_Bottom = Color3.new(1, 0, 0)
  246. wait(1)
  247. game.Lighting.Brightness = 1
  248. game.Lighting.Ambient = color
  249. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  250. game.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  251. wait(1)
  252. end
  253. end)
  254. wait(5)
  255. m:remove()
  256. script.Parent.Parent.Name = "OOF"
  257. for i, v in ipairs(workspace:getChildren()) do
  258. check(v)
  259. wait()
  260. end
  261. end)
  262.  
  263. end))
  264. for i,v in pairs(mas:GetChildren()) do
  265. v.Parent = workspace
  266. pcall(function() v:MakeJoints() end)
  267. end
  268. mas:Destroy()
  269. for i,v in pairs(cors) do
  270. spawn(function()
  271. pcall(v)
  272. end)
  273. end
Add Comment
Please, Sign In to add comment