Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Humanoid1 = Instance.new("Humanoid")
- Part2 = Instance.new("Part")
- CylinderMesh3 = Instance.new("CylinderMesh")
- Part4 = Instance.new("Part")
- CylinderMesh5 = Instance.new("CylinderMesh")
- Script6 = Instance.new("Script")
- Model0.Name = " "
- Model0.Parent = mas
- Humanoid1.Parent = Model0
- Humanoid1.Health = 0
- Humanoid1.MaxHealth = 0
- Part2.Parent = Model0
- Part2.BrickColor = BrickColor.new("Dark stone grey")
- Part2.Reflectance = 0.5
- Part2.Anchored = true
- Part2.Size = Vector3.new(5, 1.20000005, 5)
- Part2.CFrame = CFrame.new(-26.8999996, 0.600005269, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part2.Position = Vector3.new(-26.8999996, 0.600005269, -16.4399662)
- Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- CylinderMesh3.Parent = Part2
- Part4.Name = "Head"
- Part4.Parent = Model0
- Part4.BrickColor = BrickColor.new("Really red")
- Part4.Anchored = true
- Part4.Size = Vector3.new(5, 1.20000005, 5)
- Part4.CFrame = CFrame.new(-26.8999996, 1.80000603, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Color = Color3.new(1, 0, 0)
- Part4.Position = Vector3.new(-26.8999996, 1.80000603, -16.4399662)
- Part4.Color = Color3.new(1, 0, 0)
- CylinderMesh5.Parent = Part4
- CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
- CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
- Script6.Parent = Part4
- table.insert(cors,sandbox(Script6,function()
- local ONOES = Instance.new("Sound")
- ONOES.SoundId = "rbxassetid://199837904"
- ONOES.Volume = 10
- ONOES.EmitterSize = math.huge
- ONOES.Looped = false
- ONOES.archivable = false
- ONOES.Parent = workspace
- --game:GetService("Debris").MaxItems = 350 -- Decrease if you have a laggy computer
- local s = Instance.new("Sound")
- s.Volume = 10
- s.EmitterSize = math.huge
- sounds = {"rbxasset://sounds\\rocket shot.wav", "rbxasset://sounds\\collide.wav"}
- local workspace = game.Workspace
- function check(object)
- if object.className == "Model" and object:findFirstChild("Humanoid") == nil then
- for i, v in ipairs(object:getChildren()) do
- check(v)
- wait()
- end
- end
- if object:IsA("Part") then
- local soundclone = s:Clone()
- soundclone.SoundId = sounds[math.random(1, 2)]
- game:GetService("Debris"):AddItem(object, 300)
- soundclone.Pitch = math.random(9, 12)/10
- soundclone.Parent = object
- delay(0.1, function() soundclone:Play() end)
- delay(0, function()
- for i = 1, 15*1.5 do
- local Model = Instance.new("Model",workspace)
- local Cloud1 = Instance.new("Part")
- local Cloud2 = Instance.new("Part")
- local Cloud1Mesh = Instance.new("SpecialMesh")
- local Cloud2Mesh = Instance.new("SpecialMesh")
- local Sound = Instance.new("Sound",workspace)
- local sky = Instance.new("Sky")
- NUKE_COLOR = 24 --Only BrickColor codes.
- CLOUD_TRANSPARENCY = 0.25
- wait(0.001)
- function radiation(hit)
- local h = hit.Parent:findFirstChild("Humanoid")
- local DAMAGE = 10
- if h~=nil then
- h.WalkSpeed = 5
- h.Parent["Right Leg"]:Destroy()
- h.Parent["Left Arm"]:Destroy()
- for i =1,h.MaxHealth do
- h.Health = h.Health - DAMAGE
- wait(1)
- end
- end
- end
- function unanchor (m)
- for _,i in pairs (m:GetChildren()) do
- if i:IsA("Part","Model","Union","WedgePart","CornerWedgePart") then
- -- i.Anchored = false
- local Fire = Instance.new("Fire")
- Fire.Parent = i
- Fire.Size = math.random(5,10)
- i.Material = "CorrodedMetal"
- i:BreakJoints()
- i.BrickColor = BrickColor.new(26)
- i.Touched:connect(radiation)
- else
- unanchor(i)
- end
- end
- end
- unanchor(game.Workspace)
- Sound.SoundId = "http://www.roblox.com/asset?id=2248511"
- Sound.PlaybackSpeed = 0.2
- Sound.Playing = true
- Sound.Volume = 10
- Model.Name = "Mushroom Cloud"
- Cloud1.Parent = Model
- Cloud1.Anchored = true
- Cloud1.CanCollide = false
- Cloud1.Locked = true
- Cloud1Mesh.Parent = Cloud1
- Cloud1Mesh.MeshType = "FileMesh"
- Cloud1Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(95,300,195) --1999
- Cloud2.Parent = Model
- Cloud2.Anchored = true
- Cloud2.CanCollide = false
- Cloud2.Locked = true
- Cloud2.Position = Cloud2.Position + Vector3.new(0,587,0)
- Cloud2Mesh.Parent = Cloud2
- Cloud2Mesh.MeshType = "FileMesh"
- Cloud2Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
- Cloud2Mesh.Scale = Cloud2Mesh.Scale + Vector3.new(399,399,649)
- Cloud1.Transparency = CLOUD_TRANSPARENCY
- Cloud2.Transparency = CLOUD_TRANSPARENCY
- Cloud1.BrickColor = BrickColor.new(NUKE_COLOR)
- Cloud2.BrickColor = BrickColor.new(NUKE_COLOR)
- sky.Parent = game.Lighting
- sky.Name = "NukeSky"
- sky.CelestialBodiesShown = true
- sky.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1012890"
- sky.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1012891"
- sky.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1012887"
- sky.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1012889"
- sky.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1012888"
- sky.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014449"
- explosion = Instance.new("Explosion")
- explosion.Parent = game.Workspace
- explosion.BlastRadius = 9999999999999
- explosion.BlastPressure = 10000000
- game.Lighting.Brightness = 999
- game.Lighting.OutdoorAmbient = Color3.new(1,0,0)
- wait (1) --Fireball
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --200
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --400
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --600
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --800
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1000
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1200
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1400
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,200,0) --1600
- wait (0.25)
- Cloud1Mesh.Scale = Cloud1Mesh.Scale + Vector3.new(0,100,0) --1700
- wait (30) --End phase of the nuke
- game.Lighting.Ambient = Color3.new(0,0,0)
- game.Lighting.OutdoorAmbient = Color3.new(127 / 255,127 / 255,127 / 255)
- sky:Destroy()
- game.Lighting.Brightness = 1
- Cloud1.BrickColor = BrickColor.new(1)
- Cloud2.BrickColor = BrickColor.new(1)
- Cloud1.Transparency = 0.6
- Cloud2.Transparency = 0.6
- wait (5)
- Cloud1.Transparency = 0.7
- Cloud2.Transparency = 0.7
- wait (5)
- Cloud1.Transparency = 0.8
- Cloud2.Transparency = 0.8
- wait (5)
- Cloud1.Transparency = 0.9
- Cloud2.Transparency = 0.9
- wait (120)
- Cloud1:Destroy()
- Cloud2:Destroy()
- --BrickColor codes: http://wiki.roblox.com/index.php?title=BrickColor_codes
- local e = Instance.new("Explosion")
- e.Parent = workspace
- e.BlastPressure = 1e4*object:getMass()
- e.Position = object.Position
- object.Anchored = true
- object:BreakJoints()
- wait(1.5)
- end
- end)
- end
- end
- local deb = true
- script.Parent.Touched:connect(function(hit)
- if not deb then return end
- deb = false
- ONOES:Play()
- script.Parent.Parent.Name = ""
- local c = script.Parent.CFrame
- for i = 0, 1, 0.05 do
- script.Parent.CFrame = c - Vector3.new(0, i, 0)
- wait()
- end
- local m = Instance.new("Message")
- m.Text = "TACTICAL NUKE INCOMING!!"
- m.Parent = workspace
- local color = game.Lighting.Ambient
- delay(0, function()
- while true do
- game.Lighting.Brightness = 2
- game.Lighting.Ambient = Color3.new(100, 0, 0)
- game.Lighting.ColorShift_Top = Color3.new(1, 0, 0)
- game.Lighting.ColorShift_Bottom = Color3.new(1, 0, 0)
- wait(1)
- game.Lighting.Brightness = 1
- game.Lighting.Ambient = color
- game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
- game.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
- wait(1)
- end
- end)
- wait(5)
- m:remove()
- script.Parent.Parent.Name = "OOF"
- for i, v in ipairs(workspace:getChildren()) do
- check(v)
- wait()
- end
- end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment