ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
|
| 02 Aug 2011 11:29 PM |
Here you go:
--[[ Teehee. ]]---------------------------------------------------------------------------------------------------------------------------------------------------------- Images = { "http://www.roblox.com/asset/?id=58291204", "http://www.roblox.com/asset/?id=58291212", "http://www.roblox.com/asset/?id=58291220", "http://www.roblox.com/asset/?id=58291227", "http://www.roblox.com/asset/?id=58291235", "http://www.roblox.com/asset/?id=58291248", "http://www.roblox.com/asset/?id=58291255", "http://www.roblox.com/asset/?id=58291265", "http://www.roblox.com/asset/?id=58291276", "http://www.roblox.com/asset/?id=58291282" } Nuking = true for i = 1,10 do game:GetService("ContentProvider"):Preload(Images[i]) end wait(1) function Delete(Object) if Object:isA("BasePart") then Object.Parent = nil end for Index,Child in pairs (Object:GetChildren()) do Delete(Child) end end function Destroy(Object) if Object:isA("BasePart") then Object.BrickColor = BrickColor.new("Black") Object.Material = Enum.Material.CorrodedMetal end for Index,Child in pairs (Object:GetChildren()) do math.randomseed(tick()) Chance = math.random(1,3) if Chance == 1 then Destroy(Child) else if Child:isA("BasePart") and Child.Name ~= "Base" and Child.Name ~= "Torso" and Child.Name ~= "Head" then Child.Parent = nil end end end end function Nuke(Player) if Nuking then GUI = Instance.new("ScreenGui",Player.PlayerGui) GUI.Name = "Nuke" Frame = Instance.new("Frame",GUI) Flash = Instance.new("Frame",GUI) Frame.Style = Enum.FrameStyle.RobloxRound Frame.Position = UDim2.new(0.5,-140,0,10) Frame.Size = UDim2.new(0,280,0,60) Nuke = Instance.new("ImageLabel",Frame) Nuke.Name = "Nuke" Nuke.Image = Images[1] delay(0,function() for s = 1,100 do for i = 1,10 do Nuke.Image = Images[i] wait(.05) end end end) Nuke.BackgroundTransparency = 1 Nuke.BorderSizePixel = 0 Nuke.Position = UDim2.new(0,220,0.5,-20) Nuke.Size = UDim2.new(0,40,0,40) Label = Instance.new("TextLabel",Frame) Label.Name = "Count" Label.BackgroundTransparency = 1 Label.BorderSizePixel = 0 Label.FontSize = Enum.FontSize.Size14 Label.Text = "Tactical Nuke Inbound! 5" Label.Position = UDim2.new(0,0,0,0) Label.Size = UDim2.new(0,210,1,0) Label.TextColor3 = Color3.new(1,1,0.4) Flash.Name = "Flash" Flash.BackgroundTransparency = 1 Flash.BackgroundColor3 = Color3.new(1,1,1) Flash.BorderSizePixel = 0 Flash.Size = UDim2.new(1,0,1,0) Sound = Instance.new("Sound",GUI) Sound.SoundId = "rbxasset://sounds//electronicpingshort.wav" Sound.Volume = 1 Sound.Name = "Sound1" Sound = Instance.new("Sound",GUI) Sound.SoundId = "rbxasset://sounds/collide.wav" Sound.Volume = 1 Sound.Pitch = .5 Sound.Name = "Sound2" Sound = Instance.new("Sound",GUI) Sound.SoundId = "rbxasset://sounds/collide.wav" Sound.Volume = 1 Sound.Pitch = .1 Sound.Name = "Sound3" end end for Index,Player in pairs (game.Players:GetChildren()) do Nuke(Player) Player.CharacterAdded:connect(function() Nuke(Player) end) end game.Players.PlayerAdded:connect(function() Nuke(Player) Player.CharacterAdded:connect(function() Nuke(Player) end) end) for t = 5,1,-1 do for Index,Player in pairs (game.Players:GetChildren()) do if Player.PlayerGui:FindFirstChild("Nuke") then Player.PlayerGui.Nuke.Frame.Count.Text = "Tactical Nuke Inbound! "..t Player.PlayerGui.Nuke.Sound1:Play() end end wait(1) end for Index,Player in pairs (game.Players:GetChildren()) do if Player.PlayerGui:FindFirstChild("Nuke") then Player.PlayerGui.Nuke.Frame.Parent = nil Player.PlayerGui.Nuke.Sound2:Play() Player.PlayerGui.Nuke.Sound3:Play() end end for i = 1,-0.1,-.1 do for Index,Player in pairs (game.Players:GetChildren()) do if Player.PlayerGui:FindFirstChild("Nuke") then Player.PlayerGui.Nuke.Flash.BackgroundTransparency = i end end wait() end Destroy(workspace) Destroy(game.Lighting) game.Lighting.Ambient = Color3.new(1,.8,0) for Index,Player in pairs (game.Players:GetChildren()) do if Player.Character then Player.Character.Humanoid.WalkSpeed = 4 end end wait(1) for i = -0.1,1.1,.1 do for Index,Player in pairs (game.Players:GetChildren()) do if Player.PlayerGui:FindFirstChild("Nuke") then Player.PlayerGui.Nuke.Flash.BackgroundTransparency = i end end wait() end Nuking = false for Index,Player in pairs (game.Players:GetChildren()) do if Player.PlayerGui:FindFirstChild("Nuke") then Player.PlayerGui.Nuke.Parent = nil end end wait(5) for Index,Player in pairs (game.Players:GetChildren()) do GUI = Instance.new("ScreenGui",Player.PlayerGui) GUI.Name = "Nuke" Frame = Instance.new("Frame",GUI) Frame.BackgroundColor3 = Color3.new(0,0,0) Frame.BackgroundTransparency = 1 Frame.BorderSizePixel = 0 Frame.Size = UDim2.new(1,0,1,0) end for i = 1,-0.1,-.01 do for Index,Player in pairs (game.Players:GetChildren()) do if Player.PlayerGui:FindFirstChild("Nuke") then Player.PlayerGui.Nuke.Frame.BackgroundTransparency = i end end wait() end for Index,Child in pairs (game.Players:GetChildren()) do Child.Parent = nil end Delete(workspace) Delete(game.Lighting) |
|
|
| Report Abuse |
|
|
| 02 Aug 2011 11:31 PM |
| I'm actually going to do this :< |
|
|
| Report Abuse |
|
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
|
| 02 Aug 2011 11:32 PM |
@clonewars:
It's pretty awesome. It plays sounds, rotates the nuke emblem, destroys the place and forces everyone to leave. :D |
|
|
| Report Abuse |
|
Agent718
|
  |
| Joined: 15 Jun 2008 |
| Total Posts: 3661 |
|
|
| 02 Aug 2011 11:37 PM |
| So where do I enter it in the place? |
|
|
| Report Abuse |
|
| |
ERRORV3
|
  |
| Joined: 14 Feb 2011 |
| Total Posts: 352 |
|
| |
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
|
| 03 Aug 2011 12:10 AM |
@agent: In the chat bar, it varies though depending on the script builder.
@clonewars: It depends on the script builder security.
@error: Yeah, it hides the main code.
Also, you can save this as Nuke.lua and run it with Tools > Execute Script in a play solo place. : ) |
|
|
| Report Abuse |
|
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
| |
|
| 03 Aug 2011 12:17 AM |
| how do you get this working do I copy the part with the links too |
|
|
| Report Abuse |
|
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
| |
|
| 03 Aug 2011 12:34 AM |
| it dosent work. What script builder place should I go to 1 2 or 3 |
|
|
| Report Abuse |
|
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
|
| 03 Aug 2011 12:36 AM |
Anaminus's script builders have security to stop server messing up stuff like this.
Try Billiland's old script builder. |
|
|
| Report Abuse |
|
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
|
| 03 Aug 2011 12:43 AM |
Here's a server with low enough security to run this:
http://www.roblox.com/Oxcool1s-script-builder-Fixed-item?id=20279777 |
|
|
| Report Abuse |
|