Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---Nuke by samy22
- --7 errors
- -------DO NOT EDIT BELOW
- char = script.Parent
- Model = char.Parent
- script.Blast:play()
- --wait(0.8)
- for i,v in pairs (game.Players:GetPlayers()) do
- camscript = script.NCamEffect:Clone()
- camscript.Parent = v.Backpack
- camscript.Disabled = false
- end
- 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
- num1 = 25
- num2 = 25
- char.Smoke.Enabled = true
- script.Blast.Volume = 100
- -------------------
- script.Save.Value = game.Lighting.Ambient
- --incase of several nukes, lighting remains
- vv = game.Lighting:findFirstChild("Save")
- if vv == nil then
- game.Lighting.Ambient = script.Ambient.Value
- yy = script.Save:Clone()
- yy.Parent = game.Lighting
- end
- -------------------
- script.MushroomCloud.Disabled = false
- script.Parent.Transparency = 1
- script.Mesh:Clone().Parent = script.Parent
- coroutine.resume(coroutine.create( function()
- j = Instance.new("Part", Workspace)
- j.TopSurface = 0
- j.BottomSurface = 0
- j.Anchored, j.Locked = true, true
- j.Size = Vector3.new(1,1,1)
- j.CFrame = char.CFrame
- Instance.new("SpecialMesh", j)
- j.BrickColor = BrickColor.new("Really red")
- j.Mesh.MeshType = "Sphere"
- for i = 1,10 do
- wait()
- j.Mesh.Scale = Vector3.new(i*140,i*140,i*140)
- j.Transparency = j.Transparency + 0.1
- end
- j:remove()
- end))
- coroutine.resume(coroutine.create( function()
- char.ExplosionParticles.Enabled = true
- wait(0.7)
- char.ExplosionParticles.Enabled = false
- end))
- coroutine.resume(coroutine.create( function()
- for i = 1, 4000 do
- wait()
- script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(math.rad(0.05),math.rad(0.05),math.rad(0.05))
- game.Lighting.Blur.Size = game.Lighting.Blur.Size - (10/3)
- end
- end))
- decreasebright = false
- coroutine.resume(coroutine.create( function()
- for i = 1, 100 do
- wait()
- game.Lighting.ColorCorrection.Brightness = game.Lighting.ColorCorrection.Brightness + 0.01
- end
- decreasebright = true
- end))
- fff = Instance.new("ForceField")
- fff.Parent = script.Parent
- game.Lighting.FogEnd = 50
- wait(1)
- for i = 1,6 do
- wait()
- local booms = 30
- game.Lighting.Brightness = game.Lighting.Brightness + 1
- script.Parent.Transparency = script.Parent.Transparency - (1/6)
- 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
- if hit.Anchored == false then
- d = hit:findFirstChild("Radiation")
- if d == nil then
- script.Radiation:Clone().Parent = hit
- end
- else
- hit.Material = "CorrodedMetal"
- hs = hit:findFirstChild("AfterSmoke")
- if hs == nil then
- x = math.random(1,100)
- if x == 3 then
- as = script.AfterSmoke:Clone()
- as.Enabled = true
- as.Parent = hit
- as.Size = math.random(10,30)
- as.RiseVelocity = math.random(5,10)
- as.Opacity = math.random(1,5) / 10
- hit.BrickColor = BrickColor.new("Really black")
- else
- ps = Instance.new("IntValue")
- ps.Name = "AfterSmoke"
- ps.Parent = hit
- end
- end
- end
- end
- end
- end)
- end
- num1 = num1 + 50
- num2 = num2 + 50
- wait(0.2)
- end
- for i = 1,6 do
- wait(0.2)
- game.Lighting.Brightness = game.Lighting.Brightness - 1
- end
- wait(2)
- for i = 1,100 do
- wait(0.2)
- game.Lighting.FogEnd = game.Lighting.FogEnd + 100
- if decreasebright == true and game.Lighting.ColorCorrection.Brightness > 0 then
- game.Lighting.ColorCorrection.Brightness = game.Lighting.ColorCorrection.Brightness - 0.1
- end
- end
- game.Lighting.ColorCorrection.Brightness = 0
- --if game.StarterPack:findFirstChild("NukeLauncher") == nil then
- -- game.ServerStorage.NukeLauncher:Clone().Parent = game.StarterPack
- --end
- pop = game.Lighting:findFirstChild("Save")
- if pop ~= nil then
- game.Lighting.Ambient = pop.Value
- pop:remove()
- end
- game.Lighting.FogEnd = 100000
- game.Lighting.Blur.Size = 0
- for i,v in pairs (game.Players:GetPlayers()) do
- fscript = script.Fix:Clone()
- fscript.Parent = v.Backpack
- fscript.Disabled = false
- end
- Model:remove()
Advertisement
Add Comment
Please, Sign In to add comment