Mryeetmemes

Blast

Dec 9th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.26 KB | None | 0 0
  1. ---Nuke by samy22
  2. --7 errors
  3.  
  4.  
  5. -------DO NOT EDIT BELOW
  6. char = script.Parent
  7. Model = char.Parent
  8.  
  9. script.Blast:play()
  10. --wait(0.8)
  11. for i,v in pairs (game.Players:GetPlayers()) do
  12.     camscript = script.NCamEffect:Clone()
  13.     camscript.Parent = v.Backpack
  14.     camscript.Disabled = false
  15. end
  16. for i = 1,20 do game.Lighting.Blur.Size = game.Lighting.Blur.Size + 1.5 wait() end  for i = 1,3 do  game.Lighting.Blur.Size = game.Lighting.Blur.Size - (10/3) wait() end
  17. num1 = 25
  18. num2 = 25
  19. char.Smoke.Enabled = true
  20. script.Blast.Volume = 100
  21.  
  22. -------------------
  23. script.Save.Value = game.Lighting.Ambient
  24. --incase of several nukes, lighting remains
  25. vv = game.Lighting:findFirstChild("Save")
  26. if vv == nil then
  27. game.Lighting.Ambient = script.Ambient.Value
  28. yy = script.Save:Clone()
  29. yy.Parent = game.Lighting
  30. end
  31. -------------------
  32. script.MushroomCloud.Disabled = false
  33. script.Parent.Transparency = 1
  34. script.Mesh:Clone().Parent = script.Parent
  35.  
  36. coroutine.resume(coroutine.create( function()
  37. j = Instance.new("Part", Workspace)
  38. j.TopSurface = 0
  39. j.BottomSurface = 0
  40. j.Anchored, j.Locked = true, true
  41. j.Size = Vector3.new(1,1,1)
  42. j.CFrame = char.CFrame
  43. Instance.new("SpecialMesh", j)
  44. j.BrickColor = BrickColor.new("Really red")
  45. j.Mesh.MeshType = "Sphere"
  46. for i = 1,10 do
  47. wait()
  48. j.Mesh.Scale = Vector3.new(i*140,i*140,i*140)
  49. j.Transparency = j.Transparency + 0.1
  50. end
  51. j:remove()
  52. end))
  53.  
  54. coroutine.resume(coroutine.create( function()
  55. char.ExplosionParticles.Enabled = true
  56. wait(0.7)
  57. char.ExplosionParticles.Enabled = false
  58.  
  59. end))
  60.  
  61. coroutine.resume(coroutine.create( function()
  62. for i = 1, 4000 do
  63. wait()
  64. script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(math.rad(0.05),math.rad(0.05),math.rad(0.05))
  65. game.Lighting.Blur.Size = game.Lighting.Blur.Size - (10/3)
  66. end
  67.  
  68. end))
  69. decreasebright = false
  70. coroutine.resume(coroutine.create( function()
  71. for i = 1, 100 do
  72. wait()
  73. game.Lighting.ColorCorrection.Brightness = game.Lighting.ColorCorrection.Brightness + 0.01
  74. end
  75. decreasebright = true
  76. end))
  77.  
  78.  
  79. fff = Instance.new("ForceField")
  80. fff.Parent = script.Parent
  81.  
  82. game.Lighting.FogEnd = 50
  83. wait(1)
  84.  
  85. for i = 1,6 do
  86. wait()
  87. local booms = 30
  88. game.Lighting.Brightness = game.Lighting.Brightness + 1
  89. script.Parent.Transparency = script.Parent.Transparency - (1/6)
  90.     for i = 1,booms do
  91.  
  92.         local a = i * ((3.14156 * 2) / booms)
  93.         local x = num1 * math.cos(a)
  94.         local z = num2 * math.sin(a)
  95.  
  96.  
  97.         local ex = Instance.new("Explosion")
  98.         ex.BlastRadius = 200
  99.         ex.BlastPressure = 4000000
  100.         ex.Position = Vector3.new(char.CFrame.p.x + x, char.CFrame.p.y, char.CFrame.p.z + z)
  101.         ex.Parent = game.Workspace
  102.         ex.Hit:connect(function(hit)
  103. f = hit:findFirstChild("ForceField")
  104. if f == nil then
  105. ff = hit.Parent:findFirstChild("ForceField")
  106. if ff == nil then
  107. if hit.Anchored == false then
  108. d = hit:findFirstChild("Radiation")
  109. if d == nil then
  110. script.Radiation:Clone().Parent = hit
  111. end
  112. else
  113. hit.Material = "CorrodedMetal"
  114. hs = hit:findFirstChild("AfterSmoke")
  115. if hs == nil then
  116. x = math.random(1,100)
  117. if x == 3 then
  118. as = script.AfterSmoke:Clone()
  119. as.Enabled = true
  120. as.Parent = hit
  121. as.Size = math.random(10,30)
  122. as.RiseVelocity = math.random(5,10)
  123. as.Opacity = math.random(1,5) / 10
  124. hit.BrickColor = BrickColor.new("Really black")
  125. else
  126. ps = Instance.new("IntValue")
  127. ps.Name = "AfterSmoke"
  128. ps.Parent = hit
  129. end
  130. end
  131. end
  132. end
  133. end
  134.  end)
  135.     end
  136. num1 = num1 + 50
  137. num2 = num2 + 50
  138. wait(0.2)
  139. end
  140. for i = 1,6 do
  141. wait(0.2)
  142. game.Lighting.Brightness = game.Lighting.Brightness - 1
  143. end
  144. wait(2)
  145. for i = 1,100 do
  146. wait(0.2)
  147. game.Lighting.FogEnd = game.Lighting.FogEnd + 100
  148. if decreasebright == true  and game.Lighting.ColorCorrection.Brightness > 0 then
  149. game.Lighting.ColorCorrection.Brightness = game.Lighting.ColorCorrection.Brightness - 0.1
  150. end
  151. end
  152. game.Lighting.ColorCorrection.Brightness = 0
  153. --if game.StarterPack:findFirstChild("NukeLauncher") == nil then
  154. --  game.ServerStorage.NukeLauncher:Clone().Parent = game.StarterPack
  155. --end
  156. pop = game.Lighting:findFirstChild("Save")
  157. if pop ~= nil then
  158. game.Lighting.Ambient = pop.Value
  159. pop:remove()
  160. end
  161.  
  162. game.Lighting.FogEnd = 100000
  163. game.Lighting.Blur.Size = 0
  164. for i,v in pairs (game.Players:GetPlayers()) do
  165.     fscript = script.Fix:Clone()
  166.     fscript.Parent = v.Backpack
  167.     fscript.Disabled = false
  168. end
  169. Model:remove()
  170.  
Advertisement
Add Comment
Please, Sign In to add comment