Advertisement
builderman_build

Untitled

Nov 6th, 2016
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. ---Nuke by kkilller1000
  2.  
  3.  
  4. EndIn = 60
  5. Power = 30
  6.  
  7. -------DO NOT EDIT BELOW
  8. char = script.Parent
  9. Model = char.Parent
  10.  
  11.  
  12. num1 = 25
  13. num2 = 25
  14. char.Smoke.Enabled = true
  15. script.Blast.Volume = 100
  16. script.Blast:play()
  17. script.Save.Value = game.Lighting.Ambient
  18. game.Lighting.Ambient = script.Ambient.Value
  19. script.MushroomCloud.Disabled = false
  20. script.Parent.Transparency = 1
  21. script.Parent.Mesh:remove()
  22. script.Mesh:Clone().Parent = script.Parent
  23. script.ForceField:Clone().Parent = script.Parent
  24. script.Radiation.Disabled = false
  25. for i = 1,Power do
  26. wait()
  27. local booms = 30
  28. game.Lighting.Brightness = game.Lighting.Brightness + 0.2
  29. script.Parent.Transparency = script.Parent.Transparency - 0.04
  30. for i = 1,booms do
  31.  
  32. local a = i * ((3.14156 * 2) / booms)
  33. local x = num1 * math.cos(a)
  34. local z = num2 * math.sin(a)
  35.  
  36.  
  37. local ex = Instance.new("Explosion")
  38. ex.BlastRadius = 200
  39. ex.BlastPressure = 4000000
  40. ex.Position = Vector3.new(char.CFrame.p.x + x, char.CFrame.p.y, char.CFrame.p.z + z)
  41. ex.Parent = game.Workspace
  42. ex.Hit:connect(function(hit)
  43. f = hit:findFirstChild("ForceField")
  44. if f == nil then
  45. ff = hit.Parent:findFirstChild("ForceField")
  46. if ff == nil then
  47. d = hit:findFirstChild("Disintegrate")
  48. if d == nil then
  49. script.Disintegrate:Clone().Parent = hit
  50. end
  51. end
  52. end
  53. end)
  54. end
  55. num1 = num1 + 50
  56. num2 = num2 + 50
  57. wait(0.2)
  58. end
  59. for i = 1,Power do
  60. wait(0.2)
  61. game.Lighting.Brightness = game.Lighting.Brightness - 0.2
  62. end
  63. wait(EndIn)
  64. game.Lighting.Ambient = script.Save.Value
  65. Model:remove()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement