KrYn0MoRe

tactical nuke mw2

Aug 27th, 2020 (edited)
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 24.76 KB | None | 0 0
  1. Tool0 = Instance.new("Tool")
  2. Part1 = Instance.new("Part")
  3. Part2 = Instance.new("Part")
  4. Part3 = Instance.new("Part")
  5. Part4 = Instance.new("Part")
  6. CylinderMesh5 = Instance.new("CylinderMesh")
  7. Part6 = Instance.new("Part")
  8. BlockMesh7 = Instance.new("BlockMesh")
  9. Part8 = Instance.new("Part")
  10. Part9 = Instance.new("Part")
  11. Part10 = Instance.new("Part")
  12. Part11 = Instance.new("Part")
  13. CylinderMesh12 = Instance.new("CylinderMesh")
  14. Part13 = Instance.new("Part")
  15. CylinderMesh14 = Instance.new("CylinderMesh")
  16. Part15 = Instance.new("Part")
  17. CylinderMesh16 = Instance.new("CylinderMesh")
  18. Part17 = Instance.new("Part")
  19. CylinderMesh18 = Instance.new("CylinderMesh")
  20. Part19 = Instance.new("Part")
  21. CylinderMesh20 = Instance.new("CylinderMesh")
  22. Tool0.Name = "Nuke"
  23. Tool0.Parent = nil
  24. Tool0.CanBeDropped = false
  25. Part1.Name = "Handle"
  26. Part1.Parent = Tool0
  27. Part1.CFrame = CFrame.new(-18.8515549, 0.500005007, -6.0078702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  28. Part1.Position = Vector3.new(-18.8515549, 0.500005007, -6.0078702)
  29. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  30. Part1.Size = Vector3.new(0.599999845, 1, 0.200000003)
  31. Part1.Anchored = true
  32. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  33. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  34. Part1.BrickColor = BrickColor.new("Dark stone grey")
  35. Part1.CanCollide = false
  36. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  37. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  38. Part1.Material = Enum.Material.Marble
  39. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  40. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  41. Part1.brickColor = BrickColor.new("Dark stone grey")
  42. Part2.Name = "Back"
  43. Part2.Parent = Tool0
  44. Part2.CFrame = CFrame.new(-18.8515549, 0.500005007, -5.95787811, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  45. Part2.Orientation = Vector3.new(0, 180, 0)
  46. Part2.Position = Vector3.new(-18.8515549, 0.500005007, -5.95787811)
  47. Part2.Rotation = Vector3.new(-180, 0, -180)
  48. Part2.Size = Vector3.new(0.499999851, 0.899999976, 0.200000003)
  49. Part2.Anchored = true
  50. Part2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  51. Part2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  52. Part2.CanCollide = false
  53. Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  54. Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  55. Part2.Material = Enum.Material.Metal
  56. Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  57. Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  58. Part3.Name = "Light"
  59. Part3.Parent = Tool0
  60. Part3.CFrame = CFrame.new(-19.0015793, 0.912518978, -6.03286886, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  61. Part3.Position = Vector3.new(-19.0015793, 0.912518978, -6.03286886)
  62. Part3.Color = Color3.new(1, 0, 0)
  63. Part3.Transparency = 0.30000001192093
  64. Part3.Size = Vector3.new(0.200000003, 0.124999993, 0.200000003)
  65. Part3.Anchored = true
  66. Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  67. Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  68. Part3.BrickColor = BrickColor.new("Really red")
  69. Part3.CanCollide = false
  70. Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  71. Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  72. Part3.Material = Enum.Material.Neon
  73. Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  74. Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  75. Part3.brickColor = BrickColor.new("Really red")
  76. Part4.Name = "Antenna Base"
  77. Part4.Parent = Tool0
  78. Part4.CFrame = CFrame.new(-19.0015602, 1.03700697, -6.0078721, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  79. Part4.Position = Vector3.new(-19.0015602, 1.03700697, -6.0078721)
  80. Part4.Size = Vector3.new(0.296001464, 0.074000366, 0.296001464)
  81. Part4.Anchored = true
  82. Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  83. Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  84. Part4.CanCollide = false
  85. Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  86. Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  87. Part4.Material = Enum.Material.Metal
  88. Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  89. Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  90. CylinderMesh5.Parent = Part4
  91. CylinderMesh5.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  92. Part6.Name = "Button"
  93. Part6.Parent = Tool0
  94. Part6.CFrame = CFrame.new(-18.6115189, 0.745014012, -6.0078702, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  95. Part6.Position = Vector3.new(-18.6115189, 0.745014012, -6.0078702)
  96. Part6.Color = Color3.new(0.356863, 0.364706, 0.411765)
  97. Part6.Size = Vector3.new(0.200000003, 0.449999988, 0.200000003)
  98. Part6.Anchored = true
  99. Part6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  100. Part6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  101. Part6.BrickColor = BrickColor.new("Smoky grey")
  102. Part6.CanCollide = false
  103. Part6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  104. Part6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  105. Part6.Material = Enum.Material.SmoothPlastic
  106. Part6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  107. Part6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  108. Part6.brickColor = BrickColor.new("Smoky grey")
  109. BlockMesh7.Parent = Part6
  110. BlockMesh7.Scale = Vector3.new(1, 1, 0.699999988)
  111. Part8.Name = "Speaker"
  112. Part8.Parent = Tool0
  113. Part8.CFrame = CFrame.new(-18.8715248, 0.740023017, -6.03287077, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  114. Part8.Position = Vector3.new(-18.8715248, 0.740023017, -6.03287077)
  115. Part8.Size = Vector3.new(0.429999799, 0.0899999961, 0.200000003)
  116. Part8.Anchored = true
  117. Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  118. Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  119. Part8.CanCollide = false
  120. Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  121. Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  122. Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  123. Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  124. Part9.Name = "Speaker 3"
  125. Part9.Parent = Tool0
  126. Part9.CFrame = CFrame.new(-18.8715248, 0.540018022, -6.03287077, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  127. Part9.Position = Vector3.new(-18.8715248, 0.540018022, -6.03287077)
  128. Part9.Size = Vector3.new(0.429999799, 0.0899999961, 0.200000003)
  129. Part9.Anchored = true
  130. Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  131. Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  132. Part9.CanCollide = false
  133. Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  134. Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  135. Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  136. Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  137. Part10.Name = "Speaker 2"
  138. Part10.Parent = Tool0
  139. Part10.CFrame = CFrame.new(-18.8715248, 0.640021026, -6.03287077, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  140. Part10.Position = Vector3.new(-18.8715248, 0.640021026, -6.03287077)
  141. Part10.Size = Vector3.new(0.429999799, 0.0899999961, 0.200000003)
  142. Part10.Anchored = true
  143. Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  144. Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  145. Part10.CanCollide = false
  146. Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  147. Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  148. Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  149. Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  150. Part11.Name = "Antenna Seal"
  151. Part11.Parent = Tool0
  152. Part11.CFrame = CFrame.new(-19.0023003, 1.09800696, -6.00861406, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  153. Part11.Position = Vector3.new(-19.0023003, 1.09800696, -6.00861406)
  154. Part11.Color = Color3.new(0.388235, 0.372549, 0.384314)
  155. Part11.Size = Vector3.new(0.185000896, 0.122000366, 0.185000911)
  156. Part11.Anchored = true
  157. Part11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  158. Part11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  159. Part11.BrickColor = BrickColor.new("Dark stone grey")
  160. Part11.CanCollide = false
  161. Part11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  162. Part11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  163. Part11.Material = Enum.Material.Metal
  164. Part11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  165. Part11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  166. Part11.brickColor = BrickColor.new("Dark stone grey")
  167. CylinderMesh12.Parent = Part11
  168. CylinderMesh12.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  169. Part13.Name = "Antenna Long Seal"
  170. Part13.Parent = Tool0
  171. Part13.CFrame = CFrame.new(-19.0015373, 1.26001799, -6.00787878, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  172. Part13.Orientation = Vector3.new(0, 180, 0)
  173. Part13.Position = Vector3.new(-19.0015373, 1.26001799, -6.00787878)
  174. Part13.Rotation = Vector3.new(-180, 0, -180)
  175. Part13.Color = Color3.new(0.105882, 0.164706, 0.207843)
  176. Part13.Size = Vector3.new(0.149000898, 0.386000305, 0.101000912)
  177. Part13.Anchored = true
  178. Part13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  179. Part13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  180. Part13.BrickColor = BrickColor.new("Black")
  181. Part13.CanCollide = false
  182. Part13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  183. Part13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  184. Part13.Material = Enum.Material.Metal
  185. Part13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  186. Part13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  187. Part13.brickColor = BrickColor.new("Black")
  188. CylinderMesh14.Parent = Part13
  189. CylinderMesh14.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  190. Part15.Name = "Antenna"
  191. Part15.Parent = Tool0
  192. Part15.CFrame = CFrame.new(-19.0015411, 1.900015, -6.00787878, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  193. Part15.Orientation = Vector3.new(0, 180, 0)
  194. Part15.Position = Vector3.new(-19.0015411, 1.900015, -6.00787878)
  195. Part15.Rotation = Vector3.new(-180, 0, -180)
  196. Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  197. Part15.Size = Vector3.new(0.0500000007, 1.13600016, 0.0500000007)
  198. Part15.Anchored = true
  199. Part15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  200. Part15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  201. Part15.BrickColor = BrickColor.new("Really black")
  202. Part15.CanCollide = false
  203. Part15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  204. Part15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  205. Part15.Material = Enum.Material.Metal
  206. Part15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  207. Part15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  208. Part15.brickColor = BrickColor.new("Really black")
  209. CylinderMesh16.Parent = Part15
  210. CylinderMesh16.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  211. Part17.Name = "Knob Base"
  212. Part17.Parent = Tool0
  213. Part17.CFrame = CFrame.new(-18.6715965, 1.02500904, -6.01287079, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  214. Part17.Position = Vector3.new(-18.6715965, 1.02500904, -6.01287079)
  215. Part17.Color = Color3.new(0.803922, 0.803922, 0.803922)
  216. Part17.Size = Vector3.new(0.296001464, 0.0500000007, 0.18600145)
  217. Part17.Anchored = true
  218. Part17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  219. Part17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  220. Part17.BrickColor = BrickColor.new("Mid gray")
  221. Part17.CanCollide = false
  222. Part17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  223. Part17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  224. Part17.Material = Enum.Material.Metal
  225. Part17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  226. Part17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  227. Part17.brickColor = BrickColor.new("Mid gray")
  228. CylinderMesh18.Parent = Part17
  229. CylinderMesh18.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  230. Part19.Name = "Knob"
  231. Part19.Parent = Tool0
  232. Part19.CFrame = CFrame.new(-18.6715965, 1.06500804, -6.01286697, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  233. Part19.Position = Vector3.new(-18.6715965, 1.06500804, -6.01286697)
  234. Part19.Color = Color3.new(0.105882, 0.164706, 0.207843)
  235. Part19.Size = Vector3.new(0.296001464, 0.0500000007, 0.106001452)
  236. Part19.Anchored = true
  237. Part19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  238. Part19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  239. Part19.BrickColor = BrickColor.new("Black")
  240. Part19.CanCollide = false
  241. Part19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  242. Part19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  243. Part19.Material = Enum.Material.SmoothPlastic
  244. Part19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  245. Part19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  246. Part19.brickColor = BrickColor.new("Black")
  247. CylinderMesh20.Parent = Part19
  248. CylinderMesh20.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  249.  
  250. local tool = Tool0
  251. local handle = tool.Handle
  252.  
  253. for i,v in pairs(tool:GetChildren()) do
  254.     if v:IsA("BasePart") and v ~= handle then
  255.         local w = Instance.new("Weld")
  256.         w.Part0 = handle
  257.         w.Part1 = v
  258.         w.C0 = handle.CFrame:Inverse()
  259.         w.C1 = v.CFrame:Inverse()
  260.         v.Anchored = false
  261.         v.CanCollide = true
  262.         v.Massless = true
  263.         w.Parent = v
  264.     end
  265. end
  266.  
  267. handle.Anchored = false
  268. handle.CanCollide = true
  269. handle.Massless = true
  270.  
  271. local NukeLaunched = false
  272. local played = false
  273. local working = false
  274.  
  275. local ready_nuke = Instance.new("Sound")
  276. ready_nuke.Parent = handle
  277. ready_nuke.Volume = 1
  278. ready_nuke.SoundId = "rbxassetid://1074331294"
  279.  
  280. function NukeAlert()
  281.     pcall(function()
  282.         if not played then else return end
  283.         --played = true
  284.         ready_nuke:Play()
  285.         repeat wait()
  286.         until ready_nuke.TimePosition >= 3.9989 or true
  287.         ready_nuke:Stop()
  288.         --game:GetService("Debris"):AddItem(al,3.9989) -- 3.1 or 3.7
  289.         --[[
  290.         pcall(function()
  291.             handle.Main.Gui.Beep.ImageTransparency = 0
  292.             wait(0.1)
  293.             handle.Main.Gui.Beep.ImageTransparency = 1
  294.             wait(0.4)
  295.             handle.Main.Gui.Beep.ImageTransparency = 0
  296.             wait(0.1)
  297.             handle.Main.Gui.Beep.ImageTransparency = 1
  298.         end)
  299.         ]]
  300.     end)
  301. end
  302.  
  303. function NukeClick(p)
  304.     working = true
  305.     NukeLaunched = true
  306.     local done1,done2,done3 = false,false,false
  307.     pcall(function()
  308.         local al = Instance.new("Sound")
  309.         pcall(function()
  310.             al.Parent = handle
  311.         end)
  312.         al.Volume = 2
  313.         al.SoundId = "rbxassetid://1074331294"
  314.         al.TimePosition = 3.99
  315.         al:Play()
  316.        
  317.         --local coru=coroutine.wrap(function()
  318.         repeat
  319.             wait()
  320.         until al == nil or al.TimePosition >= 8.9 or true
  321.         al.TimePosition = 5.95
  322.         wait(3.25)
  323.         al.TimePosition = 5.95
  324.         wait(3.25)
  325.         al:Destroy()
  326.        
  327.        
  328.         local CloudID= "http://www.roblox.com/asset/?id=1095708"
  329.         local ColorTexture = "http://www.roblox.com/asset/?ID=1361097"
  330.         local RingID = "http://www.roblox.com/asset/?id=3270017"
  331.         local SphereID = "http://www.roblox.com/asset/?id=1185246"
  332.        
  333.        
  334.         local Size = 450 --Change the size if you want.
  335.        
  336.         local Exp = Instance.new("Model")
  337.         Exp.Name = "Tsar"
  338.         Exp.Parent = workspace
  339.        
  340.         local BasePart = Instance.new("Part")
  341.         BasePart.formFactor = 0
  342.         BasePart.TopSurface = 0
  343.         BasePart.BottomSurface = 0
  344.         BasePart.Anchored = true
  345.         BasePart.Locked = true
  346.         BasePart.CanCollide = false
  347.        
  348.         local BaseMesh = Instance.new("SpecialMesh")
  349.         BaseMesh.MeshType = "FileMesh"
  350.        
  351.         local CloudMesh = BaseMesh:clone()
  352.         CloudMesh.MeshId = CloudID
  353.         CloudMesh.TextureId = ColorTexture
  354.         CloudMesh.VertexColor = Vector3.new(0.9,0.6,0)
  355.        
  356.         local RingMesh = BaseMesh:clone()
  357.         RingMesh.MeshId = RingID
  358.        
  359.         local SphereMesh = BaseMesh:clone()
  360.         SphereMesh.MeshId = SphereID
  361.         local Blur = Instance.new("BlurEffect")
  362.         Blur.Size = 0
  363.         Blur.Parent = game:GetService("Lighting")
  364.         local Bloom = Instance.new("BloomEffect")
  365.         Bloom.Threshold = 0
  366.         Bloom.Parent = game:GetService("Lighting")
  367.         local DoF = Instance.new("DepthOfFieldEffect")
  368.         DoF.InFocusRadius = 0
  369.         DoF.Parent = game:GetService("Lighting")
  370.         local SunRays = Instance.new("SunRaysEffect")
  371.         SunRays.Intensity = 0
  372.         SunRays.Parent = game:GetService("Lighting")
  373.         local boom = Instance.new("Sound")
  374.         boom.Parent = workspace
  375.         boom.SoundId = "rbxassetid://1502307055"
  376.         boom.Volume = 7
  377.         boom.Pitch = 1
  378.         boom:Play()
  379.        
  380.         local BeforeNukeAmbient = game:GetService("Lighting").Ambient
  381.         local BeforeNukeBrightness = game:GetService("Lighting").Brightness
  382.        
  383.         local Clouds = {}
  384.         local ShockWave = {}
  385.        
  386.         working = false
  387.        
  388.         function Effects()
  389.             delay(0,function()
  390.                 for i = 10, 1,-0.5 do
  391.                     wait()
  392.                     game:GetService("Lighting").Brightness = i
  393.                 end
  394.                 game:GetService("TweenService"):Create(Blur,TweenInfo.new(2),{Size = 8}):Play()
  395.                 game:GetService("TweenService"):Create(Bloom,TweenInfo.new(2),{Threshold = 8}):Play()
  396.                 game:GetService("TweenService"):Create(DoF,TweenInfo.new(2),{InFocusRadius = 10}):Play()
  397.                 --game:GetService("TweenService"):Create(SunRays,TweenInfo.new(2),{Intensity = 2}):Play()
  398.                 game:GetService("Debris"):AddItem(Blur,5)
  399.                 game:GetService("Debris"):AddItem(Blur,Bloom)
  400.                 game:GetService("Debris"):AddItem(Blur,DoF)
  401.                 game:GetService("Debris"):AddItem(Blur,SunRays)
  402.                 game:GetService("Lighting").Ambient = Color3.new(152,159,36)
  403.                 game:GetService("TweenService"):Create(game:GetService("Lighting"),TweenInfo.new(2),{Brightness = 5}):Play()
  404.                 --game:GetService("Lighting").Brightness = 5
  405.                 for i = 0,1,0.01 do
  406.                     game:GetService("Lighting").Ambient = game:GetService("Lighting").Ambient:Lerp(Color3.new(0,0,0),i)
  407.                     wait()
  408.                 end
  409.             end)
  410.         end
  411.        
  412.         function Destruction(Pos,Radius)
  413.             local function Destroy(Model)
  414.                 for i ,v in ipairs(Model:getChildren()) do
  415.                     if v:isA("BasePart") then
  416.                         if (v.Position-Pos).magnitude < Radius then
  417.                             if v.Anchored == false then
  418.                                 v:BreakJoints()
  419.                                 v.Velocity = CFrame.new(v.Position,Pos):vectorToWorldSpace(Vector3.new(math.random(-5,5),5,1000))
  420.                                 v.Material = "CorrodedMetal"
  421.                             end
  422.                         end
  423.                     end
  424.                     if #v:getChildren() > 0 then
  425.                         Destroy(v)
  426.                     end
  427.                 end
  428.             end
  429.             Destroy(workspace)
  430.         end
  431.         function Explode(Pos)
  432.            
  433.             local Base = BasePart:clone()
  434.             Base.Position = Pos
  435.            
  436.             local Mesh = CloudMesh:clone()
  437.             Mesh.Parent = Base
  438.             Mesh.Scale = Vector3.new(2.5,1,4.5)
  439.            
  440.             local PoleBase = BasePart:clone()
  441.             PoleBase.Position = Pos+Vector3.new(0,0.1,0)
  442.            
  443.             local PoleBaseMesh = CloudMesh:clone()
  444.             PoleBaseMesh.Scale = Vector3.new(1.25,2,2.5)
  445.             PoleBaseMesh.Parent = PoleBase
  446.            
  447.             local Cloud1 = BasePart:clone()
  448.             Cloud1.Position = Pos+Vector3.new(0,0.75,0)
  449.            
  450.             local Cloud1Mesh = CloudMesh:clone()
  451.             Cloud1Mesh.Scale = Vector3.new(0.5,3,1)
  452.             Cloud1Mesh.Parent = Cloud1
  453.            
  454.             local Cloud2 = BasePart:clone()
  455.             Cloud2.Position = Pos+Vector3.new(0,1.25,0)
  456.            
  457.             local Cloud2Mesh = CloudMesh:clone()
  458.             Cloud2Mesh.Scale = Vector3.new(0.5,1.5,1)
  459.             Cloud2Mesh.Parent = Cloud2
  460.            
  461.             local Cloud3 = BasePart:clone()
  462.             Cloud3.Position = Pos+Vector3.new(0,1.7,0)
  463.            
  464.             local Cloud3Mesh = CloudMesh:clone()
  465.             Cloud3Mesh.Scale = Vector3.new(0.5,1.5,1)
  466.             Cloud3Mesh.Parent = Cloud3
  467.            
  468.             local PoleRing = BasePart:clone()
  469.             PoleRing.Position = Pos+Vector3.new(0,1.3,0)
  470.             PoleRing.Transparency = 0.2
  471.             PoleRing.BrickColor = BrickColor.new("Dark stone grey")
  472.             PoleRing.CFrame = PoleRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  473.            
  474.             local Mesh = RingMesh:clone()
  475.             Mesh.Scale = Vector3.new(1.2,1.2,1.2)
  476.             Mesh.Parent = PoleRing
  477.            
  478.             local MushCloud = BasePart:clone()
  479.             MushCloud.Position = Pos+Vector3.new(0,2.3,0)
  480.            
  481.             local MushMesh = CloudMesh:clone() -- lol
  482.             MushMesh.Scale = Vector3.new(2.5,1.75,3.5)
  483.             MushMesh.Parent = MushCloud
  484.            
  485.             local TopCloud = BasePart:clone()
  486.             TopCloud.Position = Pos+Vector3.new(0,2.7,0)
  487.            
  488.             local TopMesh = CloudMesh:clone()
  489.             TopMesh.Scale = Vector3.new(7.5,1.5,1.5)
  490.             TopMesh.Parent = TopCloud
  491.            
  492.             table.insert(Clouds,Base)
  493.             table.insert(Clouds,TopCloud)
  494.             table.insert(Clouds,MushCloud)
  495.             table.insert(Clouds,Cloud1)
  496.             table.insert(Clouds,Cloud2)
  497.             table.insert(Clouds,Cloud3)
  498.             table.insert(Clouds,PoleBase)
  499.             table.insert(Clouds,PoleRing)
  500.            
  501.            
  502.             local BigRing = BasePart:clone()
  503.             BigRing.Position = Pos
  504.             BigRing.CFrame = BigRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  505.            
  506.             local BigMesh = RingMesh:clone()
  507.             BigMesh.Scale = Vector3.new(5,5,1)
  508.             BigMesh.Parent = BigRing
  509.            
  510.             local SmallRing = BasePart:clone()
  511.             SmallRing.Position = Pos
  512.             SmallRing.BrickColor = BrickColor.new("Dark stone grey")
  513.             SmallRing.CFrame = SmallRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  514.            
  515.             local SmallMesh = RingMesh:clone()
  516.             SmallMesh.Scale = Vector3.new(4.6,4.6,1.5)
  517.             SmallMesh.Parent = SmallRing
  518.            
  519.             local InnerSphere = BasePart:clone()
  520.             InnerSphere.Position = Pos
  521.             InnerSphere.BrickColor = BrickColor.new("Bright orange")
  522.             InnerSphere.Transparency = 0.5
  523.            
  524.             local InnerSphereMesh = SphereMesh:clone() 
  525.             InnerSphereMesh.Scale = Vector3.new(-6.5,-6.5,-6.5)
  526.             InnerSphereMesh.Parent = InnerSphere
  527.            
  528.             local OutterSphere = BasePart:clone()
  529.             OutterSphere.Position = Pos
  530.             OutterSphere.BrickColor = BrickColor.new("Bright orange")
  531.             OutterSphere.Transparency = 0.5
  532.            
  533.             local OutterSphereMesh = SphereMesh:clone()
  534.             OutterSphereMesh.Scale = Vector3.new(6.5,6.5,6.5)
  535.             OutterSphereMesh.Parent = OutterSphere
  536.            
  537.             table.insert(ShockWave,BigRing)
  538.             table.insert(ShockWave,SmallRing)
  539.             table.insert(ShockWave,OutterSphere)
  540.             table.insert(ShockWave,InnerSphere)
  541.             for i , v in ipairs(ShockWave) do
  542.                 v.Parent = Exp
  543.             end
  544.             for i , v in ipairs(Clouds) do
  545.                 v.Parent = Exp
  546.             end
  547.             Effects()
  548.             delay(0,function()
  549.                 spawn(function()
  550.                     for resize = Size/1.5, Size*3, 0.2 do
  551.                         wait()
  552.                         pcall(function()
  553.                             BigRing.Mesh.Scale = Vector3.new(7*resize,7*resize,1*resize)
  554.                             SmallRing.Mesh.Scale = Vector3.new(5.6*resize,5.6*resize,1.5*resize)
  555.                             InnerSphere.Mesh.Scale = Vector3.new(-6.5*resize,-6.5*resize,-6.5*resize)
  556.                             OutterSphere.Mesh.Scale = Vector3.new(6.5*resize,6.5*resize,6.5*resize)
  557.                             Destruction(Pos,3*resize)
  558.                         end)
  559.                     end
  560.                 end)
  561.                 for fade = 0, 1, 0.005 do
  562.                     wait()
  563.                     pcall(function()
  564.                         for i ,v in ipairs(ShockWave) do
  565.                             v.Transparency = fade
  566.                         end
  567.                     end)
  568.                 end
  569.                 for i ,v in ipairs(ShockWave) do
  570.                     v:Remove()
  571.                 end
  572.                 done1 = true
  573.             end)
  574.             delay(0,function()
  575.                 for resize = Size/5, Size, 0.1 do
  576.                     wait()
  577.                     pcall(function()
  578.                         Base.Mesh.Scale = Vector3.new(2.5*resize,1*resize,4.5*resize)
  579.                         TopCloud.Mesh.Scale = Vector3.new(2*resize,1.5*resize,3*resize)
  580.                         MushCloud.Mesh.Scale = Vector3.new(2.5*resize,1.75*resize,3.5*resize)
  581.                         Cloud1.Mesh.Scale = Vector3.new(0.5*resize,3*resize,1*resize)
  582.                         Cloud2.Mesh.Scale = Vector3.new(0.5*resize,5*resize,1*resize)
  583.                         Cloud3.Mesh.Scale = Vector3.new(0.5*resize,5*resize,1*resize)
  584.                         PoleBase.Mesh.Scale = Vector3.new(1*resize,3*resize,2.5*resize)
  585.                         PoleRing.Mesh.Scale = Vector3.new(1.2*resize,1.2*resize,1.2*resize)
  586.                        
  587.                         Base.Position = Pos+Vector3.new(0,0.05*resize,0)
  588.                         TopCloud.Position = Pos+Vector3.new(0,2.7*resize,0)*2
  589.                         MushCloud.Position = Pos+Vector3.new(0,2.3*resize,0)*2
  590.                         Cloud1.Position = Pos+Vector3.new(0,0.75*resize,0)*2
  591.                         Cloud2.Position = Pos+Vector3.new(0,1.25*resize,0)*2
  592.                         Cloud3.Position = Pos+Vector3.new(0,1.7*resize,0)*2
  593.                         PoleBase.Position = Pos+Vector3.new(0,0.1*resize,0)*2
  594.                         PoleRing.Position = Pos+Vector3.new(0,1.3*resize,0)*2
  595.                     end)
  596.                 end
  597.                 done2 = true
  598.             end)
  599.             wait(2)
  600.             for y = 0.6,0,-0.0025 do
  601.                 wait()
  602.                 for i , v in ipairs(Clouds) do
  603.                     v.Mesh.VertexColor = Vector3.new(0.9,y,0)
  604.                 end
  605.             end
  606.             for r = 0.9,0.5,-0.01 do
  607.                 wait()
  608.                 for i , v in ipairs(Clouds) do
  609.                     v.Mesh.VertexColor = Vector3.new(r,0,0)
  610.                 end
  611.             end
  612.             for by = 0,0.5,0.005 do
  613.                 wait()
  614.                 for i , v in ipairs(Clouds) do
  615.                     v.Mesh.VertexColor = Vector3.new(0.5,by,by)
  616.                     v.Transparency = by*2.1
  617.                 end
  618.                 Base.Mesh.Scale = Base.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  619.                 TopCloud.Mesh.Scale = TopCloud.Mesh.Scale+Vector3.new(0.5,0.4,0.5)*2
  620.                 MushCloud.Mesh.Scale = MushCloud.Mesh.Scale+Vector3.new(0.3,0.3,0.3)*2
  621.                 Cloud1.Mesh.Scale = Cloud1.Mesh.Scale+Vector3.new(0.1,0.1,0.1)*2
  622.                 Cloud2.Mesh.Scale = Cloud2.Mesh.Scale+Vector3.new(0.1,0.4,0.1)*2
  623.                 Cloud3.Mesh.Scale = Cloud3.Mesh.Scale+Vector3.new(0.1,0.1,0.1)*2
  624.                 PoleBase.Mesh.Scale = PoleBase.Mesh.Scale+Vector3.new(0.1,0.1,0.1)*2
  625.                 PoleRing.Mesh.Scale = PoleRing.Mesh.Scale+Vector3.new(0.8,0.8,0.8)*2
  626.             end
  627.             done3 = true
  628.             pcall(function()
  629.                 repeat wait()
  630.                    
  631.                 until done3
  632.             end)
  633.             --while true do wait(1) if done1 and done2 and done3 then break end end
  634.             pcall(function()
  635.                 game:GetService("Lighting").Ambient = BeforeNukeAmbient
  636.                 game:GetService("Debris"):AddItem(Blur,2.1)
  637.                 game:GetService("Debris"):AddItem(Bloom,2.1)
  638.                 game:GetService("Debris"):AddItem(DoF,2.1)
  639.                 game:GetService("Debris"):AddItem(SunRays,2.1)
  640.                 game:GetService("TweenService"):Create(Blur,TweenInfo.new(2),{Size = 0}):Play()
  641.                 game:GetService("TweenService"):Create(Bloom,TweenInfo.new(2),{Threshold = 0}):Play()
  642.                 game:GetService("TweenService"):Create(DoF,TweenInfo.new(2),{InFocusRadius = 0}):Play()
  643.                 game:GetService("TweenService"):Create(SunRays,TweenInfo.new(2),{Intensity = 0}):Play()
  644.                 game:GetService("TweenService"):Create(game:GetService("Lighting"),TweenInfo.new(2),{Brightness = BeforeNukeBrightness}):Play()
  645.                 Exp:remove()
  646.             end)
  647.             wait(2)
  648.             tool:Destroy()
  649.             --script:Destroy()
  650.             --wait(20)
  651.         end
  652.        
  653.         NukeAlert()
  654.        
  655.         Explode(p)
  656.     end)
  657.     --working = false
  658. end
  659.  
  660. tool.Equipped:Connect(NukeAlert)
  661. tool.Unequipped:Connect(function()
  662.     ready_nuke:Stop()
  663. end)
  664.  
  665. tool.Activated:Connect(function()
  666.     if not NukeLaunched and not working then
  667.         handle.Name = 'used'
  668.         tool.Parent = workspace
  669.         wait()
  670.         NukeClick(handle.Position)
  671.     end
  672. end)
  673.  
  674. tool.Parent = owner:FindFirstChildOfClass("Backpack")
Add Comment
Please, Sign In to add comment