Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MEGATONS = 20
- local nukecolor = "Bright yellow"
- local fireballcolor = "Bright yellow"
- local nuked = false
- script.Parent = workspace
- local pos = owner.Character.Head.Position
- local radius = 2048/(100/MEGATONS)
- if radius <= 61.45 then
- fireballcolor = "Institutional white"
- end
- local rumbling = Instance.new("Sound",owner.Character.Head)
- local mainexplode = Instance.new("Sound",owner.Character.Head)
- rumbling.SoundId = "rbxassetid://923073285"
- mainexplode.SoundId = "rbxassetid://5174255131"
- rumbling.Volume = 10
- rumbling.MaxDistance = 38000
- mainexplode.Volume = 10
- mainexplode.MaxDistance = 10000
- function nuke()
- if nuked == false then
- --local sky = script.Sky:Clone()
- -- pos.CanCollide = false
- -- script.Parent.Transparency = 1
- nuked = true
- local incineration = Instance.new("Explosion",workspace)
- incineration.Visible = false
- incineration.Position = pos
- incineration.BlastRadius = radius*1.25
- incineration.Hit:connect(function(hit,float)
- if float > 0 then
- hit.Size = Vector3.new(hit.Size.X / 10,hit.Size.Y / 10,hit.Size.Z / 10)
- hit.Material = "CorrodedMetal"
- hit.Anchored = false
- hit.Velocity = Vector3.new(0,0,0)
- hit.Touched:connect(function(huma)
- local h = huma.Parent:FindFirstChildOfClass("Humanoid")
- if h ~= nil then
- huma:BreakJoints()
- huma.BrickColor = BrickColor.Red()
- end
- end)
- local fire = Instance.new("Fire",hit)
- fire.Size = hit.Size.X
- fire.Heat = 0
- wait(10)
- fire.Enabled = false
- fire:Destroy()
- end
- end)
- rumbling:Play()
- mainexplode:Play()
- -- sky.Parent = game.Lighting
- game.Lighting.Brightness = 5000
- wait(0.05)
- game.Lighting.Brightness = 500
- wait(0.05)
- game.Lighting.Brightness = 50
- wait(0.05)
- game.Lighting.Brightness = 25
- wait(0.05)
- game.Lighting.Brightness = 12
- wait(0.05)
- game.Lighting.Brightness = 1
- local cloud = Instance.new("Model",workspace)
- cloud.Name = "NUCLEARBLAST"
- local cloudbody = Instance.new("Part",cloud)
- cloudbody.Name = "CloudBody"
- cloudbody.Anchored = true
- cloudbody.CanCollide = false
- cloudbody.Locked = true
- if radius > 299 then
- cloudbody.BrickColor = BrickColor.new(nukecolor)
- end
- cloudbody.Position = pos
- local mesh1 = Instance.new("FileMesh",cloudbody)
- mesh1.MeshId = "http://www.roblox.com/asset/?id=1095708"
- mesh1.Scale = Vector3.new(radius / 10, radius, radius / 10)
- local cloudhead = Instance.new("Part",cloud)
- cloudhead.Name = "CloudHead"
- cloudhead.Anchored = true
- if radius > 299 then
- cloudhead.BrickColor = BrickColor.new(nukecolor)
- end
- cloudhead.Locked = true
- cloudhead.Locked = true
- cloudhead.Position = Vector3.new(pos.X, mesh1.Scale.Y / 3, pos.Z)
- local mesh2 = Instance.new("FileMesh",cloudhead)
- mesh2.MeshId = "http://www.roblox.com/asset/?id=1095708"
- mesh2.Scale = Vector3.new(450*(radius/1000), 225*(radius/1000), 650*(radius/1000))
- local fireball = Instance.new("Part",cloud)
- fireball.CanCollide = false
- -- fireball.Anchored = true
- fireball.Name = "Fireball"
- fireball.Locked = true
- fireball.BrickColor = BrickColor.new(fireballcolor)
- fireball.Material = "Neon"
- fireball.Transparency = 0.5
- fireball.Position = pos
- fireball.Shape = 0
- fireball.Size = Vector3.new(radius/20,radius/20,radius/20)
- fireball.Touched:connect(function(hit)
- if not hit.Anchored then
- -- hit.BrickColor = BrickColor.new("Black")
- hit.Velocity = CFrame.new(hit.Position,fireball.Position):vectorToWorldSpace(Vector3.new(math.random(-500,500),2,500))
- -- hit.Velocity = hit.Velocity + Vector3.new(50,50,50)
- end
- if not hit.Locked then
- hit.Material = "CorrodedMetal"
- hit.Anchored = false
- hit.Touched:connect(function(huma)
- local h = huma.Parent:FindFirstChildOfClass("Humanoid")
- if h ~= nil then
- huma:BreakJoints()
- huma.BrickColor = BrickColor.Red()
- end
- end)
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h~=nil then
- h.Sit = true
- h:TakeDamage(math.random(1,100))
- else
- hit:BreakJoints()
- end
- end)
- local fbCframe = fireball.CFrame
- local orCFrame = fbCframe
- for i = 1,radius/5 do
- fireball.CFrame = orCFrame
- fireball.Velocity = Vector3.new(0,0,0)
- fireball.Size = fireball.Size + Vector3.new(5,5,5)
- fireball.Transparency = i/(radius/5)
- mesh2.VertexColor = mesh2.VertexColor - Vector3.new(0.01,0.01,0.01)
- mesh1.VertexColor = mesh1.VertexColor - Vector3.new(0.01,0.01,0.01)
- mesh1.Scale = mesh1.Scale + Vector3.new(0.5,0.375,0.5)
- mesh2.Scale = mesh2.Scale + Vector3.new(0.5,0.375,0.5)
- wait()
- end
- fireball:Destroy()
- --sky:Destroy()
- cloudbody.BrickColor = BrickColor.Gray()
- cloudhead.BrickColor = BrickColor.Gray()
- for i = 1,1000 do
- cloudhead.Transparency = i/1000
- cloudbody.Transparency = i/1000
- mesh1.Scale = mesh1.Scale + Vector3.new(0.5,0,0.5)
- mesh2.Scale = mesh2.Scale + Vector3.new(1.5,0.25,1.5)
- wait(0.01)
- end
- end
- end
- nuke()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement