Advertisement
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")
- Script1 = Instance.new("Script")
- Sound2 = Instance.new("Sound")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Sound5 = Instance.new("Sound")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Sound8 = Instance.new("Sound")
- Sound9 = Instance.new("Sound")
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- Sound12 = Instance.new("Sound")
- Script13 = Instance.new("Script")
- Script14 = Instance.new("Script")
- Script15 = Instance.new("Script")
- Sound16 = Instance.new("Sound")
- Script17 = Instance.new("Script")
- Sound18 = Instance.new("Sound")
- Script19 = Instance.new("Script")
- Sound20 = Instance.new("Sound")
- Script21 = Instance.new("Script")
- Script22 = Instance.new("Script")
- Script23 = Instance.new("Script")
- Sound24 = Instance.new("Sound")
- Sound25 = Instance.new("Sound")
- Sound26 = Instance.new("Sound")
- Sound27 = Instance.new("Sound")
- Sound28 = Instance.new("Sound")
- Sound29 = Instance.new("Sound")
- Sound30 = Instance.new("Sound")
- Sound31 = Instance.new("Sound")
- Sound32 = Instance.new("Sound")
- Script33 = Instance.new("Script")
- Sound34 = Instance.new("Sound")
- Sound35 = Instance.new("Sound")
- Script36 = Instance.new("Script")
- Script37 = Instance.new("Script")
- Sound38 = Instance.new("Sound")
- Sound39 = Instance.new("Sound")
- Sound40 = Instance.new("Sound")
- Script41 = Instance.new("Script")
- Model42 = Instance.new("Model")
- Humanoid43 = Instance.new("Humanoid")
- Part44 = Instance.new("Part")
- CylinderMesh45 = Instance.new("CylinderMesh")
- Snap46 = Instance.new("Snap")
- Part47 = Instance.new("Part")
- CylinderMesh48 = Instance.new("CylinderMesh")
- Script49 = Instance.new("Script")
- ClickDetector50 = Instance.new("ClickDetector")
- Model0.Name = "Robux Trap"
- Model0.Parent = mas
- Script1.Name = "Gate"
- Script1.Parent = Model0
- table.insert(cors,sandbox(Script1,function()
- local g = Instance.new("Hint",Workspace)
- g.Text = "Warning! The self destruct sequence has been activated!"
- wait(2)
- g:Destroy()
- script.Serverlite.Disabled = false
- script.ReverseAlarm.Disabled = false
- --script.warn1:Play()
- --wait(19)
- script.music:Play()
- wait(9)
- script.music6:Play()
- local msg = Instance.new("Message")
- msg.Parent = game.Workspace
- msg.Name = 'HelloBrick'
- msg.Text = "Warning: Selfdestructsystem initiated"
- wait(4)
- msg.Text = "Have a nice day"
- wait(3.2)
- script.music6:Stop()
- game.Workspace.HelloBrick:remove()
- wait(1)
- script.Countdown.Disabled = false
- end))
- Script1.Disabled = true
- Sound2.Name = "music"
- Sound2.Parent = Script1
- Sound2.EmitterSize = 0
- Sound2.MinDistance = 0
- Sound2.SoundId = "http://www.roblox.com/asset/?id=130894143"
- Sound2.Volume = 1
- Sound3.Name = "music1"
- Sound3.Parent = Script1
- Sound3.EmitterSize = 0
- Sound3.MinDistance = 0
- Sound3.SoundId = "http://www.roblox.com/asset/?id=130894379"
- Sound3.Volume = 1
- Sound4.Name = "music2"
- Sound4.Parent = Script1
- Sound4.EmitterSize = 0
- Sound4.MinDistance = 0
- Sound4.SoundId = "http://www.roblox.com/asset/?id=130886114"
- Sound4.Volume = 1
- Sound5.Name = "music3"
- Sound5.Parent = Script1
- Sound5.EmitterSize = 0
- Sound5.MinDistance = 0
- Sound5.SoundId = "http://www.roblox.com/asset/?id=130886089"
- Sound5.Volume = 1
- Sound6.Name = "music4"
- Sound6.Parent = Script1
- Sound6.EmitterSize = 0
- Sound6.MinDistance = 0
- Sound6.SoundId = "http://www.roblox.com/asset/?id=130894483"
- Sound6.Volume = 1
- Sound7.Name = "music5"
- Sound7.Parent = Script1
- Sound7.EmitterSize = 0
- Sound7.MinDistance = 0
- Sound7.SoundId = "http://www.roblox.com/asset/?id=130895130"
- Sound7.Volume = 1
- Sound8.Name = "music6"
- Sound8.Parent = Script1
- Sound8.Looped = true
- Sound8.EmitterSize = 0
- Sound8.MinDistance = 0
- Sound8.SoundId = "rbxassetid://240040664"
- Sound8.Volume = 1
- Sound9.Name = "music7"
- Sound9.Parent = Script1
- Sound9.Looped = true
- Sound9.EmitterSize = 0
- Sound9.MinDistance = 0
- Sound9.SoundId = "http://www.roblox.com/asset/?id=141279377"
- Sound9.Volume = 1
- Sound10.Name = "firesound"
- Sound10.Parent = Script1
- Sound10.Looped = true
- Sound10.EmitterSize = 0
- Sound10.MinDistance = 0
- Sound10.SoundId = "http://www.roblox.com/asset/?id=31760113"
- Sound10.Volume = 0.10000000149012
- Sound11.Name = "explosiondistant"
- Sound11.Parent = Script1
- Sound11.EmitterSize = 0
- Sound11.MinDistance = 0
- Sound11.Pitch = 0.20000000298023
- Sound11.PlaybackSpeed = 0.20000000298023
- Sound11.SoundId = "http://roblox.com/asset/?id=10209859"
- Sound11.Volume = 1
- Sound12.Name = "explosionbang"
- Sound12.Parent = Script1
- Sound12.EmitterSize = 0
- Sound12.MinDistance = 0
- Sound12.PlayOnRemove = true
- Sound12.SoundId = "http://www.roblox.com/asset/?id=2248511"
- Sound12.Volume = 0.30000001192093
- Script13.Name = "Countdown"
- Script13.Parent = Script1
- table.insert(cors,sandbox(Script13,function()
- Countdown = 300
- script.Parent.Alarmy:play()
- script.Parent.Epic:Play()
- Count = Countdown
- local m = Instance.new("Hint", game.Workspace)
- while true do
- if Countdown == 9.99 then
- Countdown = Count
- else
- wait(0.1)
- m.Text = "T-"..Countdown.." intill your doomed and cant escape because some retard set it off."
- Countdown = Countdown - 1
- if m.Text == "T-0 intill your doomed and cant escape because some retard set it off." then
- m:remove()
- script.Parent.Voice.Disabled = false
- script.Parent.Explosion01:Play()
- script.Parent.Alarmy:stop()
- end
- end
- end
- end))
- Script13.Disabled = true
- Script14.Name = "Voice"
- Script14.Parent = Script1
- table.insert(cors,sandbox(Script14,function()
- wait(1)
- script.about2die.Disabled = false
- --script.Parent.Soon2Die:stop()
- script.OMGYES:Play()
- --script.Parent.TenToZero:Play()
- --script.Parent.Tsunami:Play()
- script.Parent.Epic:stop()
- script.Parent.Music1338:stop()
- wait(14.5)
- game.Workspace.ABOUT2DIE:Destroy()
- script.about2die.Disabled = true
- --wait(13)
- --game.Lighting.Ambient=Color3.new(255,0,0)
- --script.Parent.Explosion02:Play()
- script.Parent.MUCHBIG:Play()
- --script.Parent.End:Play()
- --wait(3)
- --script.Parent.explosion:Play()
- --script.Parent.explosionbang:Play()
- --script.Parent.explosiondistant:Play()
- --script.Parent.firesound:Play()
- --wait(10)
- --script.Parent.Explosion01:Play()
- --wait(5)
- --script.Parent.Explosion03:Play()
- --wait(2)
- game.Workspace.Nuke.Blast.Disabled = false
- game.Workspace.Nuke.Main.Script3.Disabled = false
- game.Workspace.Nuke.Main.Script4.Disabled = false
- game.Workspace.Nuke.Main.Transparency = 0.7
- --game.Workspace.Nuke.Glow.Transparency = 0
- wait(2)
- script.NOOO.Play()
- --wait(10)
- script.Parent.CountMusic:stop()
- wait(30)
- script.Parent.Die:play()
- wait(20)
- local m = Instance.new("Hint", game.Workspace)
- m.Text = "Sever Terrain Ruined, Reseting... Please Wait.."
- wait(10)
- m.Text = "Sever Reseted. Game Is Shutdown. ~Rejoin City Builders~"
- for _,v in pairs(game.Players:GetPlayers()) do
- v:Remove()
- end
- end))
- Script14.Disabled = true
- Script15.Name = "Detonate"
- Script15.Parent = Script14
- table.insert(cors,sandbox(Script15,function()
- local m = Instance.new("Hint", game.Workspace)
- m.Text = "! 10 !"
- wait(1)
- m.Text = " 9 "
- wait(1)
- m.Text = "! 8 !"
- wait(1)
- m.Text = " 7 "
- wait(1)
- m.Text = "! 6 !"
- wait(1)
- m.Text = " 5 "
- wait(1)
- m.Text = "! 4 !"
- wait(1)
- m.Text = " 3 "
- wait(1)
- m.Text = "! 2 !"
- wait(1)
- m.Text = " 1 "
- wait(1)
- m.Text = "! DESTROY !"
- wait(1.6)
- m:remove()
- end))
- Script15.Disabled = true
- Sound16.Name = "OMGYES"
- Sound16.Parent = Script14
- Sound16.EmitterSize = 0
- Sound16.MinDistance = 0
- Sound16.Pitch = 1.2000000476837
- Sound16.PlaybackSpeed = 1.2000000476837
- Sound16.SoundId = "rbxassetid://474619470"
- Sound16.Volume = 10
- Script17.Name = "about2die"
- Script17.Parent = Script14
- table.insert(cors,sandbox(Script17,function()
- local die = Instance.new("Hint", game.Workspace)
- die.Name = "ABOUT2DIE"
- while true do
- die.Text = "! ABOUT2DIE !"
- wait(0.1)
- die.Text = "!! ABOUT2DIE !!"
- wait(0.1)
- die.Text = "!!! ABOUT2DIE !!!"
- wait(0.1)
- die.Text = "!!!! ABOUT2DIE !!!!"
- wait(0.1)
- die.Text = "!!!!! ABOUT2DIE !!!!!"
- wait(0.1)
- die.Text = "!!!! ABOUT2DIE !!!!"
- wait(0.1)
- die.Text = "!!! ABOUT2DIE !!!"
- wait(0.1)
- die.Text = "!! ABOUT2DIE !!"
- wait(0.1)
- die.Text = "! ABOUT2DIE !"
- wait(0.1)
- end
- end))
- Script17.Disabled = true
- Sound18.Name = "NOOO"
- Sound18.Parent = Script14
- Sound18.EmitterSize = 0
- Sound18.MinDistance = 0
- Sound18.SoundId = "http://www.roblox.com/asset/?id=133507013"
- Sound18.Volume = 1
- Script19.Name = "Start"
- Script19.Parent = Script1
- table.insert(cors,sandbox(Script19,function()
- while true do
- wait(5)
- if game.Workspace.Temp.Current.Value > 1300 then
- game.Workspace.Gate.Disabled = false
- end
- end
- end))
- Sound20.Name = "Alarmy"
- Sound20.Parent = Script1
- Sound20.Looped = true
- Sound20.EmitterSize = 0
- Sound20.MinDistance = 0
- Sound20.SoundId = "http://www.roblox.com/asset/?id=135587922"
- Sound20.Volume = 0.10000000149012
- Script21.Name = "ReverseAlarm"
- Script21.Parent = Script1
- table.insert(cors,sandbox(Script21,function()
- while true do
- wait(1)
- local WarningLights ={}for i,v in pairs(workspace:GetChildren())do if v.Name=="WarningLight"then table.insert(WarningLights,v)end end
- for i,WarningLight in pairs(WarningLights)do
- WarningLight.Toggle.Value = true
- end
- end
- end))
- Script21.Disabled = true
- Script22.Name = "Alarms"
- Script22.Parent = Script1
- table.insert(cors,sandbox(Script22,function()
- while true do
- wait(1)
- if game.Workspace.Temp.Current.Value > 700 then
- local WarningLights ={}for i,v in pairs(workspace:GetChildren())do if v.Name=="WarningLight"then table.insert(WarningLights,v)end end
- for i,WarningLight in pairs(WarningLights)do
- WarningLight.Toggle.Value = true
- end
- end
- end
- end))
- Script23.Name = "Shake2"
- Script23.Parent = Script1
- table.insert(cors,sandbox(Script23,function()
- local childList = { }
- function checkObject(obj)
- if (obj.className == "Part") then
- if (obj.Locked == false) then
- table.insert(childList, 1, obj)
- end
- elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
- local child = obj:GetChildren()
- for x = 1, #child do
- checkObject(child[x])
- end
- obj.ChildAdded:connect(checkObject)
- end
- end
- checkObject(game.Workspace)
- local n = 0
- while true do
- wait(.001)
- if n < #childList then
- n = n + 1
- if n % 800 == 0 then
- wait()
- end
- else
- n = 1
- wait()
- end
- local p = math.random(n)
- local child = childList[p]
- child.Anchored = false
- child:BreakJoints()
- table.remove(childList, p)
- end
- end))
- Script23.Disabled = true
- Sound24.Name = "MUCHBIG"
- Sound24.Parent = Script1
- Sound24.EmitterSize = 0
- Sound24.MinDistance = 0
- Sound24.PlayOnRemove = true
- Sound24.SoundId = "http://www.roblox.com/asset/?id=NOPE"
- Sound24.Volume = 1
- Sound25.Name = "TenToZero"
- Sound25.Parent = Script1
- Sound25.EmitterSize = 0
- Sound25.MinDistance = 0
- Sound25.SoundId = "http://www.roblox.com/asset/?id=131018898"
- Sound25.Volume = 1
- Sound26.Name = "Explosion01"
- Sound26.Parent = Script1
- Sound26.EmitterSize = 0
- Sound26.MinDistance = 0
- Sound26.SoundId = "http://www.roblox.com/asset/?id=138210320"
- Sound26.Volume = 1
- Sound27.Name = "Explosion02"
- Sound27.Parent = Script1
- Sound27.EmitterSize = 0
- Sound27.MinDistance = 0
- Sound27.SoundId = "http://www.roblox.com/asset/?id=138104921"
- Sound27.Volume = 1
- Sound28.Name = "Explosion03"
- Sound28.Parent = Script1
- Sound28.EmitterSize = 0
- Sound28.MinDistance = 0
- Sound28.SoundId = "http://www.roblox.com/asset/?id=133680244"
- Sound28.Volume = 1
- Sound29.Name = "CountMusic"
- Sound29.Parent = Script1
- Sound29.Looped = true
- Sound29.EmitterSize = 0
- Sound29.MinDistance = 0
- Sound29.SoundId = "http://www.roblox.com/asset/?id=134002644"
- Sound29.Volume = 0.30000001192093
- Sound30.Name = "Die"
- Sound30.Parent = Script1
- Sound30.EmitterSize = 0
- Sound30.MinDistance = 0
- Sound30.Pitch = 1.2000000476837
- Sound30.PlaybackSpeed = 1.2000000476837
- Sound30.SoundId = "http://www.roblox.com/asset/?id=142288053"
- Sound30.Volume = 10
- Sound31.Name = "Spy"
- Sound31.Parent = Script1
- Sound31.EmitterSize = 0
- Sound31.MinDistance = 0
- Sound31.SoundId = "http://www.roblox.com/asset/?id=144107944"
- Sound31.Volume = 1
- Sound32.Name = "Music1337"
- Sound32.Parent = Script1
- Sound32.Looped = true
- Sound32.EmitterSize = 0
- Sound32.MinDistance = 0
- Sound32.SoundId = "http://www.roblox.com/asset/?id=142402582"
- Sound32.Volume = 1
- Script33.Name = "Serverlite"
- Script33.Parent = Script1
- table.insert(cors,sandbox(Script33,function()
- local tab = {}
- function GetAllDL(ta, p)
- for _, d in pairs(p:GetChildren()) do
- if d:IsA("SpotLight") or d:IsA("PointLight") then
- table.insert(ta,d)
- elseif d:IsA("BasePart") or d:IsA("Model") then
- GetAllDL(ta,d)
- end
- end
- end
- GetAllDL(tab,Workspace)
- wait(2)
- for _, g in pairs(tab) do
- if g ~= nil then
- g.Color = Color3.new(255,0,0)
- g.Parent.BrickColor = BrickColor.new("Bright red")
- end
- end
- end))
- Script33.Disabled = true
- Sound34.Name = "Music1338"
- Sound34.Parent = Script1
- Sound34.Looped = true
- Sound34.EmitterSize = 0
- Sound34.MinDistance = 0
- Sound34.SoundId = "http://www.roblox.com/asset/?id=142367679"
- Sound34.Volume = 1
- Sound35.Name = "End"
- Sound35.Parent = Script1
- Sound35.EmitterSize = 0
- Sound35.MinDistance = 0
- Sound35.SoundId = "http://www.roblox.com/asset/?id=143492438"
- Sound35.Volume = 1
- Script36.Name = "Shake"
- Script36.Parent = Script1
- table.insert(cors,sandbox(Script36,function()
- local childList = { }
- function checkObject(obj)
- if (obj.className == "Part") then
- if (obj.Locked == false) then
- table.insert(childList, 1, obj)
- end
- elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
- local child = obj:GetChildren()
- for x = 1, #child do
- checkObject(child[x])
- end
- obj.ChildAdded:connect(checkObject)
- end
- end
- checkObject(game.Workspace)
- local n = 0
- while true do
- wait(.1)
- if n < #childList then
- n = n + 1
- if n % 800 == 0 then
- wait()
- end
- else
- n = 1
- wait()
- end
- local p = math.random(n)
- local child = childList[p]
- child.Anchored = false
- child:BreakJoints()
- table.remove(childList, p)
- end
- end))
- Script36.Disabled = true
- Script37.Name = "Start3"
- Script37.Parent = Script1
- table.insert(cors,sandbox(Script37,function()
- while true do
- wait(5)
- if game.Workspace.Temp.Current.Value > 1200 then
- script.Parent.Spy:play()
- wait(2)
- script:remove()
- end
- end
- end))
- Sound38.Name = "Epic"
- Sound38.Parent = Script1
- Sound38.Looped = true
- Sound38.EmitterSize = 0
- Sound38.MinDistance = 0
- Sound38.SoundId = "rbxassetid://1094536879"
- Sound38.Volume = 10
- Sound39.Name = "warn2"
- Sound39.Parent = Script1
- Sound39.EmitterSize = 0
- Sound39.MinDistance = 0
- Sound39.SoundId = "http://www.roblox.com/asset/?id=132505666"
- Sound39.Volume = 0.60000002384186
- Sound40.Name = "warn1"
- Sound40.Parent = Script1
- Sound40.EmitterSize = 0
- Sound40.MinDistance = 0
- Sound40.SoundId = "http://www.roblox.com/asset/?id=132506361"
- Sound40.Volume = 0.60000002384186
- Script41.Name = "[IMPORTANT] READ ME"
- Script41.Parent = Model0
- table.insert(cors,sandbox(Script41,function()
- --Thanks for taking my self destruct system!
- --Please leave the nuke model in workspace and position it anywhere you want!
- --Do NOT clone the Nuke or it will not work. The WarningLight may be cloned anywhere you want.
- --Only edit the script if you know what you are doing. The scripts are Gate, and the scripts inside Gate.
- --There are some unused sounds you may use. Anyways, thanks for using my self destruct system,
- --and have a nice day!
- end))
- Model42.Name = "Dont Click Me >:c"
- Model42.Parent = Model0
- Humanoid43.Parent = Model42
- Humanoid43.Health = 0
- Humanoid43.MaxHealth = 0
- Humanoid43.maxHealth = 0
- Part44.Parent = Model42
- Part44.CFrame = CFrame.new(171.160629, 2.60017991, 81.940361, -1, -2.13036183e-05, -8.53186648e-05, -2.18054993e-05, 1, -4.40008043e-05, 8.73449899e-05, -4.39989853e-05, -1)
- Part44.Orientation = Vector3.new(0, -180, 0)
- Part44.Position = Vector3.new(171.160629, 2.60017991, 81.940361)
- Part44.Rotation = Vector3.new(180, 0, 180)
- Part44.Size = Vector3.new(5, 1.20000005, 5)
- Part44.Anchored = true
- Part44.Reflectance = 0.5
- CylinderMesh45.Parent = Part44
- Snap46.Parent = Part44
- Snap46.C0 = CFrame.new(0, 0.600000024, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Snap46.C1 = CFrame.new(0, -0.600036621, -3.05175781e-05, -1, -5.06341053e-07, -1.26430649e-07, 1.26430649e-07, 0, 1, 5.06341053e-07, 1, 0)
- Snap46.Part0 = Part44
- Snap46.Part1 = Part47
- Snap46.part1 = Part47
- Part47.Name = "Head"
- Part47.Parent = Model42
- Part47.CFrame = CFrame.new(171.160599, 3.80019212, 81.9402771, -1, -2.13036183e-05, -8.53186648e-05, -2.18054993e-05, 1, -4.40008043e-05, 8.73449899e-05, -4.39989853e-05, -1)
- Part47.Orientation = Vector3.new(0, -180, 0)
- Part47.Position = Vector3.new(171.160599, 3.80019212, 81.9402771)
- Part47.Rotation = Vector3.new(180, 0, 180)
- Part47.Color = Color3.new(0.121569, 0.501961, 0.113725)
- Part47.Size = Vector3.new(5, 1.20000005, 5)
- Part47.Anchored = true
- Part47.BrickColor = BrickColor.new("Forest green")
- Part47.brickColor = BrickColor.new("Forest green")
- CylinderMesh48.Parent = Part47
- CylinderMesh48.Scale = Vector3.new(0.75, 1, 0.75)
- Script49.Parent = Part47
- table.insert(cors,sandbox(Script49,function()
- function onClicked()
- script.Parent.Parent.Parent.Gate.Disabled = false
- end
- script.Parent.ClickDetector.MouseClick:connect(onClicked)
- end))
- ClickDetector50.Parent = Part47
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement