Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---Nuke by kkilller1000
- EndIn = 60
- Power = 30
- -------DO NOT EDIT BELOW
- char = script.Parent
- Model = char.Parent
- num1 = 25
- num2 = 25
- char.Smoke.Enabled = true
- script.Blast.Volume = 100
- script.Blast:play()
- script.Save.Value = game.Lighting.Ambient
- game.Lighting.Ambient = script.Ambient.Value
- script.MushroomCloud.Disabled = false
- script.Parent.Transparency = 1
- script.Parent.Mesh:remove()
- script.Mesh:Clone().Parent = script.Parent
- script.ForceField:Clone().Parent = script.Parent
- script.Radiation.Disabled = false
- for i = 1,Power do
- wait()
- local booms = 30
- game.Lighting.Brightness = game.Lighting.Brightness + 0.2
- script.Parent.Transparency = script.Parent.Transparency - 0.04
- for i = 1,booms do
- local a = i * ((3.14156 * 2) / booms)
- local x = num1 * math.cos(a)
- local z = num2 * math.sin(a)
- local ex = Instance.new("Explosion")
- ex.BlastRadius = 200
- ex.BlastPressure = 4000000
- ex.Position = Vector3.new(char.CFrame.p.x + x, char.CFrame.p.y, char.CFrame.p.z + z)
- ex.Parent = game.Workspace
- ex.Hit:connect(function(hit)
- f = hit:findFirstChild("ForceField")
- if f == nil then
- ff = hit.Parent:findFirstChild("ForceField")
- if ff == nil then
- d = hit:findFirstChild("Disintegrate")
- if d == nil then
- script.Disintegrate:Clone().Parent = hit
- end
- end
- end
- end)
- end
- num1 = num1 + 50
- num2 = num2 + 50
- wait(0.2)
- end
- for i = 1,Power do
- wait(0.2)
- game.Lighting.Brightness = game.Lighting.Brightness - 0.2
- end
- wait(EndIn)
- game.Lighting.Ambient = script.Save.Value
- Model:remove()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement