Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Model1 = Instance.new("Model")
- Model2 = Instance.new("Model")
- UnionOperation3 = Instance.new("UnionOperation")
- Part4 = Instance.new("Part")
- SurfaceGui5 = Instance.new("SurfaceGui")
- TextLabel6 = Instance.new("TextLabel")
- TextLabel7 = Instance.new("TextLabel")
- Frame8 = Instance.new("Frame")
- Frame9 = Instance.new("Frame")
- UIAspectRatioConstraint10 = Instance.new("UIAspectRatioConstraint")
- Frame11 = Instance.new("Frame")
- ImageLabel12 = Instance.new("ImageLabel")
- Frame13 = Instance.new("Frame")
- ImageLabel14 = Instance.new("ImageLabel")
- Frame15 = Instance.new("Frame")
- ImageLabel16 = Instance.new("ImageLabel")
- UIAspectRatioConstraint17 = Instance.new("UIAspectRatioConstraint")
- Folder18 = Instance.new("Folder")
- TextLabel19 = Instance.new("TextLabel")
- TextLabel20 = Instance.new("TextLabel")
- UIListLayout21 = Instance.new("UIListLayout")
- Frame22 = Instance.new("Frame")
- TextLabel23 = Instance.new("TextLabel")
- TextLabel24 = Instance.new("TextLabel")
- TextButton25 = Instance.new("TextButton")
- Frame26 = Instance.new("Frame")
- TextButton27 = Instance.new("TextButton")
- TextButton28 = Instance.new("TextButton")
- TextButton29 = Instance.new("TextButton")
- TextButton30 = Instance.new("TextButton")
- TextButton31 = Instance.new("TextButton")
- TextButton32 = Instance.new("TextButton")
- TextButton33 = Instance.new("TextButton")
- TextButton34 = Instance.new("TextButton")
- TextButton35 = Instance.new("TextButton")
- TextButton36 = Instance.new("TextButton")
- UIGridLayout37 = Instance.new("UIGridLayout")
- Frame38 = Instance.new("Frame")
- TextButton39 = Instance.new("TextButton")
- Folder40 = Instance.new("Folder")
- TextLabel41 = Instance.new("TextLabel")
- TextButton42 = Instance.new("TextButton")
- TextLabel43 = Instance.new("TextLabel")
- SurfaceLight44 = Instance.new("SurfaceLight")
- Model45 = Instance.new("Model")
- Part46 = Instance.new("Part")
- UnionOperation47 = Instance.new("UnionOperation")
- ModuleScript48 = Instance.new("ModuleScript")
- Folder49 = Instance.new("Folder")
- Sound50 = Instance.new("Sound")
- Sound51 = Instance.new("Sound")
- Sound52 = Instance.new("Sound")
- Sky53 = Instance.new("Sky")
- Script54 = Instance.new("Script")
- Part55 = Instance.new("Part")
- Camera56 = Instance.new("Camera")
- Model0.Name = "Nuclear Warhead Control"
- Model0.Parent = mas
- Model1.Name = "Nuclear Warhead Control"
- Model1.Parent = Model0
- Model2.Name = "Screen"
- Model2.Parent = Model1
- UnionOperation3.Name = "ScreenBack"
- UnionOperation3.Parent = Model2
- UnionOperation3.CFrame = CFrame.new(-1.84191096, 4.0100069, 46.9974823, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation3.Position = Vector3.new(-1.84191096, 4.0100069, 46.9974823)
- UnionOperation3.Color = Color3.new(0.356863, 0.364706, 0.411765)
- UnionOperation3.Size = Vector3.new(9.70015144, 5.90000057, 0.100135803)
- UnionOperation3.Anchored = true
- UnionOperation3.BrickColor = BrickColor.new("Smoky grey")
- UnionOperation3.Material = Enum.Material.DiamondPlate
- UnionOperation3.brickColor = BrickColor.new("Smoky grey")
- Part4.Name = "Screen"
- Part4.Parent = Model2
- Part4.CFrame = CFrame.new(-1.84198797, 4.0100069, 47.0724106, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(-1.84198797, 4.0100069, 47.0724106)
- Part4.Color = Color3.new(0, 0, 0)
- Part4.Transparency = 0.10000000149012
- Part4.Size = Vector3.new(8.79999828, 4.99999857, 0.0500000007)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Really black")
- Part4.Material = Enum.Material.SmoothPlastic
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Really black")
- SurfaceGui5.Name = "UI"
- SurfaceGui5.Parent = Part4
- SurfaceGui5.Face = Enum.NormalId.Back
- SurfaceGui5.ClipsDescendants = true
- SurfaceGui5.CanvasSize = Vector2.new(1200, 675)
- SurfaceGui5.Adornee = Part4
- TextLabel6.Name = "Credit"
- TextLabel6.Parent = SurfaceGui5
- TextLabel6.Position = UDim2.new(0, 10, 0.935000002, 0)
- TextLabel6.Size = UDim2.new(1, -10, 0.0649999976, 0)
- TextLabel6.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel6.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel6.BackgroundTransparency = 1
- TextLabel6.Font = Enum.Font.SourceSans
- TextLabel6.FontSize = Enum.FontSize.Size60
- TextLabel6.Text = "Made by dav"
- TextLabel6.TextColor = BrickColor.new("Institutional white")
- TextLabel6.TextColor3 = Color3.new(1, 1, 1)
- TextLabel6.TextScaled = true
- TextLabel6.TextSize = 50
- TextLabel6.TextStrokeTransparency = 0
- TextLabel6.TextWrap = true
- TextLabel6.TextWrapped = true
- TextLabel6.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel7.Name = "Title"
- TextLabel7.Parent = SurfaceGui5
- TextLabel7.Size = UDim2.new(1, 0, 0.100000001, 0)
- TextLabel7.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel7.BackgroundTransparency = 1
- TextLabel7.ZIndex = 999
- TextLabel7.Font = Enum.Font.SciFi
- TextLabel7.FontSize = Enum.FontSize.Size14
- TextLabel7.Text = "NUCLEAR WARHEAD CONTROL"
- TextLabel7.TextColor = BrickColor.new("Really red")
- TextLabel7.TextColor3 = Color3.new(1, 0, 0)
- TextLabel7.TextScaled = true
- TextLabel7.TextSize = 14
- TextLabel7.TextStrokeColor3 = Color3.new(0.666667, 0, 0)
- TextLabel7.TextStrokeTransparency = 0
- TextLabel7.TextWrap = true
- TextLabel7.TextWrapped = true
- Frame8.Name = "CountdownContainer"
- Frame8.Parent = SurfaceGui5
- Frame8.Position = UDim2.new(0, 0, 1.10000002, 0)
- Frame8.Size = UDim2.new(1, 0, 0.100000001, 0)
- Frame8.BackgroundColor = BrickColor.new("Institutional white")
- Frame8.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame8.BackgroundTransparency = 1
- Frame9.Name = "CountdownBar"
- Frame9.Parent = Frame8
- Frame9.Size = UDim2.new(1, 0, 1, 0)
- Frame9.BackgroundColor = BrickColor.new("Institutional white")
- Frame9.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame9.BackgroundTransparency = 1
- Frame9.ZIndex = 10
- UIAspectRatioConstraint10.Name = "AspectRatio"
- UIAspectRatioConstraint10.Parent = Frame9
- UIAspectRatioConstraint10.AspectRatio = 14.22200012207
- Frame11.Name = "BGBar"
- Frame11.Parent = Frame9
- Frame11.Position = UDim2.new(0.25, 0, 0, 0)
- Frame11.Size = UDim2.new(0.75, 0, 1, 0)
- Frame11.BackgroundColor = BrickColor.new("Institutional white")
- Frame11.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame11.BackgroundTransparency = 1
- Frame11.ClipsDescendants = true
- ImageLabel12.Name = "Bar"
- ImageLabel12.Parent = Frame11
- ImageLabel12.Position = UDim2.new(-0.333000004, 0, 0, 0)
- ImageLabel12.Size = UDim2.new(1.33299994, 0, 1, 0)
- ImageLabel12.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel12.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel12.BackgroundTransparency = 1
- ImageLabel12.ZIndex = 10
- ImageLabel12.Image = "rbxassetid://2002128075"
- ImageLabel12.ImageColor3 = Color3.new(0.666667, 0.666667, 0.666667)
- Frame13.Name = "HPBar"
- Frame13.Parent = Frame9
- Frame13.Size = UDim2.new(1, 0, 1, 0)
- Frame13.BackgroundColor = BrickColor.new("Institutional white")
- Frame13.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame13.BackgroundTransparency = 1
- Frame13.ClipsDescendants = true
- ImageLabel14.Name = "Bar"
- ImageLabel14.Parent = Frame13
- ImageLabel14.Size = UDim2.new(1, 0, 1, 0)
- ImageLabel14.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel14.BackgroundTransparency = 1
- ImageLabel14.ZIndex = 11
- ImageLabel14.Image = "rbxassetid://2002128608"
- ImageLabel14.ImageColor3 = Color3.new(0.666667, 0.666667, 0.666667)
- Frame15.Name = "CircleContainer"
- Frame15.Parent = Frame9
- Frame15.Position = UDim2.new(0.023, 0, 0, 0)
- Frame15.Size = UDim2.new(0.953999996, 0, 1, 0)
- Frame15.BackgroundColor = BrickColor.new("Institutional white")
- Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame15.BackgroundTransparency = 1
- ImageLabel16.Name = "Circle"
- ImageLabel16.Parent = Frame15
- ImageLabel16.Position = UDim2.new(1, -34, 0, 0)
- ImageLabel16.Size = UDim2.new(1, 0, 1, 0)
- ImageLabel16.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel16.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel16.BackgroundTransparency = 1
- ImageLabel16.ZIndex = 12
- ImageLabel16.Image = "rbxassetid://2002276248"
- ImageLabel16.ImageColor3 = Color3.new(0, 1, 0)
- UIAspectRatioConstraint17.Name = "AspectRatio"
- UIAspectRatioConstraint17.Parent = ImageLabel16
- Folder18.Name = "Other"
- Folder18.Parent = Frame9
- TextLabel19.Name = "Countdown"
- TextLabel19.Parent = Folder18
- TextLabel19.Size = UDim2.new(1, 0, 1, 0)
- TextLabel19.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel19.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel19.BackgroundTransparency = 1
- TextLabel19.ClipsDescendants = true
- TextLabel19.ZIndex = 14
- TextLabel19.Font = Enum.Font.SourceSansBold
- TextLabel19.FontSize = Enum.FontSize.Size14
- TextLabel19.Text = "90s left"
- TextLabel19.TextColor = BrickColor.new("Institutional white")
- TextLabel19.TextColor3 = Color3.new(1, 1, 1)
- TextLabel19.TextScaled = true
- TextLabel19.TextSize = 14
- TextLabel19.TextStrokeColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- TextLabel19.TextWrap = true
- TextLabel19.TextWrapped = true
- TextLabel20.Name = "Title"
- TextLabel20.Parent = Folder18
- TextLabel20.Position = UDim2.new(0, 0, -0.75, 0)
- TextLabel20.Size = UDim2.new(1, 0, 1, 0)
- TextLabel20.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel20.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel20.BackgroundTransparency = 1
- TextLabel20.ClipsDescendants = true
- TextLabel20.ZIndex = 14
- TextLabel20.Font = Enum.Font.Highway
- TextLabel20.FontSize = Enum.FontSize.Size14
- TextLabel20.Text = "Countdown"
- TextLabel20.TextColor = BrickColor.new("Toothpaste")
- TextLabel20.TextColor3 = Color3.new(0, 1, 1)
- TextLabel20.TextScaled = true
- TextLabel20.TextSize = 14
- TextLabel20.TextStrokeColor3 = Color3.new(0, 0.333333, 1)
- TextLabel20.TextStrokeTransparency = 0
- TextLabel20.TextWrap = true
- TextLabel20.TextWrapped = true
- UIListLayout21.Name = "Layout"
- UIListLayout21.Parent = Frame8
- UIListLayout21.FillDirection = Enum.FillDirection.Horizontal
- UIListLayout21.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout21.VerticalAlignment = Enum.VerticalAlignment.Center
- Frame22.Name = "MainContainer"
- Frame22.Parent = SurfaceGui5
- Frame22.Position = UDim2.new(0, 0, 0.129999995, 0)
- Frame22.Size = UDim2.new(1, 0, 0.600000024, 0)
- Frame22.BackgroundColor = BrickColor.new("Institutional white")
- Frame22.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame22.BackgroundTransparency = 1
- TextLabel23.Name = "InfoTitle"
- TextLabel23.Parent = Frame22
- TextLabel23.Position = UDim2.new(-0.449999988, 0, 0, 0)
- TextLabel23.Size = UDim2.new(0.449999988, 0, 0.174999997, 0)
- TextLabel23.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel23.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel23.BackgroundTransparency = 1
- TextLabel23.Font = Enum.Font.Highway
- TextLabel23.FontSize = Enum.FontSize.Size14
- TextLabel23.Text = "Information"
- TextLabel23.TextColor = BrickColor.new("Toothpaste")
- TextLabel23.TextColor3 = Color3.new(0, 1, 1)
- TextLabel23.TextScaled = true
- TextLabel23.TextSize = 14
- TextLabel23.TextStrokeColor3 = Color3.new(0, 0.333333, 1)
- TextLabel23.TextStrokeTransparency = 0
- TextLabel23.TextWrap = true
- TextLabel23.TextWrapped = true
- TextLabel24.Name = "Info"
- TextLabel24.Parent = Frame22
- TextLabel24.Position = UDim2.new(-0.449999988, 0, 0.125, 0)
- TextLabel24.Size = UDim2.new(0.449999988, 0, 0.875, 0)
- TextLabel24.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel24.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel24.BackgroundTransparency = 1
- TextLabel24.Font = Enum.Font.SourceSansSemibold
- TextLabel24.FontSize = Enum.FontSize.Size14
- TextLabel24.Text = "To launch or abort, press the button to right and enter the correct code. Nuke will destroy everything in 1000 stud radius!"
- TextLabel24.TextColor = BrickColor.new("Institutional white")
- TextLabel24.TextColor3 = Color3.new(1, 1, 1)
- TextLabel24.TextScaled = true
- TextLabel24.TextSize = 14
- TextLabel24.TextStrokeColor3 = Color3.new(0.392157, 0.392157, 0.392157)
- TextLabel24.TextStrokeTransparency = 0
- TextLabel24.TextWrap = true
- TextLabel24.TextWrapped = true
- TextLabel24.TextXAlignment = Enum.TextXAlignment.Left
- TextLabel24.TextYAlignment = Enum.TextYAlignment.Top
- TextButton25.Name = "CodeButton"
- TextButton25.Parent = Frame22
- TextButton25.Position = UDim2.new(1, 5, 0.349999994, -10)
- TextButton25.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
- TextButton25.BackgroundColor = BrickColor.new("Maroon")
- TextButton25.BackgroundColor3 = Color3.new(0.333333, 0, 0)
- TextButton25.BorderColor = BrickColor.new("Really red")
- TextButton25.BorderColor3 = Color3.new(1, 0, 0)
- TextButton25.BorderSizePixel = 4
- TextButton25.AutoButtonColor = false
- TextButton25.Font = Enum.Font.Highway
- TextButton25.FontSize = Enum.FontSize.Size14
- TextButton25.Text = "Launch"
- TextButton25.TextColor = BrickColor.new("Really red")
- TextButton25.TextColor3 = Color3.new(1, 0, 0)
- TextButton25.TextScaled = true
- TextButton25.TextSize = 14
- TextButton25.TextStrokeColor3 = Color3.new(0.666667, 0, 0)
- TextButton25.TextStrokeTransparency = 0
- TextButton25.TextWrap = true
- TextButton25.TextWrapped = true
- Frame26.Name = "CodePanel"
- Frame26.Parent = Frame22
- Frame26.Position = UDim2.new(1, 5, 0.174999997, 0)
- Frame26.Size = UDim2.new(0.300000012, 0, 0.649999976, 0)
- Frame26.BackgroundColor = BrickColor.new("Really black")
- Frame26.BackgroundColor3 = Color3.new(0, 0.196078, 0)
- Frame26.BackgroundTransparency = 0.5
- Frame26.BorderColor = BrickColor.new("Lime green")
- Frame26.BorderColor3 = Color3.new(0, 1, 0)
- Frame26.BorderSizePixel = 4
- Frame26.ZIndex = 2
- TextButton27.Name = "1"
- TextButton27.Parent = Frame26
- TextButton27.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton27.BackgroundColor = BrickColor.new("Parsley green")
- TextButton27.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton27.BackgroundTransparency = 0.40000000596046
- TextButton27.BorderColor = BrickColor.new("Lime green")
- TextButton27.BorderColor3 = Color3.new(0, 1, 0)
- TextButton27.BorderSizePixel = 3
- TextButton27.LayoutOrder = 1
- TextButton27.ZIndex = 3
- TextButton27.AutoButtonColor = false
- TextButton27.FontSize = Enum.FontSize.Size14
- TextButton27.Text = "1"
- TextButton27.TextColor = BrickColor.new("Lime green")
- TextButton27.TextColor3 = Color3.new(0, 1, 0)
- TextButton27.TextScaled = true
- TextButton27.TextSize = 14
- TextButton27.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton27.TextStrokeTransparency = 0
- TextButton27.TextWrap = true
- TextButton27.TextWrapped = true
- TextButton28.Name = "2"
- TextButton28.Parent = Frame26
- TextButton28.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton28.BackgroundColor = BrickColor.new("Parsley green")
- TextButton28.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton28.BackgroundTransparency = 0.40000000596046
- TextButton28.BorderColor = BrickColor.new("Lime green")
- TextButton28.BorderColor3 = Color3.new(0, 1, 0)
- TextButton28.BorderSizePixel = 3
- TextButton28.LayoutOrder = 2
- TextButton28.ZIndex = 3
- TextButton28.AutoButtonColor = false
- TextButton28.FontSize = Enum.FontSize.Size14
- TextButton28.Text = "2"
- TextButton28.TextColor = BrickColor.new("Lime green")
- TextButton28.TextColor3 = Color3.new(0, 1, 0)
- TextButton28.TextScaled = true
- TextButton28.TextSize = 14
- TextButton28.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton28.TextStrokeTransparency = 0
- TextButton28.TextWrap = true
- TextButton28.TextWrapped = true
- TextButton29.Name = "3"
- TextButton29.Parent = Frame26
- TextButton29.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton29.BackgroundColor = BrickColor.new("Parsley green")
- TextButton29.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton29.BackgroundTransparency = 0.40000000596046
- TextButton29.BorderColor = BrickColor.new("Lime green")
- TextButton29.BorderColor3 = Color3.new(0, 1, 0)
- TextButton29.BorderSizePixel = 3
- TextButton29.LayoutOrder = 3
- TextButton29.ZIndex = 3
- TextButton29.AutoButtonColor = false
- TextButton29.FontSize = Enum.FontSize.Size14
- TextButton29.Text = "3"
- TextButton29.TextColor = BrickColor.new("Lime green")
- TextButton29.TextColor3 = Color3.new(0, 1, 0)
- TextButton29.TextScaled = true
- TextButton29.TextSize = 14
- TextButton29.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton29.TextStrokeTransparency = 0
- TextButton29.TextWrap = true
- TextButton29.TextWrapped = true
- TextButton30.Name = "4"
- TextButton30.Parent = Frame26
- TextButton30.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton30.BackgroundColor = BrickColor.new("Parsley green")
- TextButton30.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton30.BackgroundTransparency = 0.40000000596046
- TextButton30.BorderColor = BrickColor.new("Lime green")
- TextButton30.BorderColor3 = Color3.new(0, 1, 0)
- TextButton30.BorderSizePixel = 3
- TextButton30.LayoutOrder = 4
- TextButton30.ZIndex = 3
- TextButton30.AutoButtonColor = false
- TextButton30.FontSize = Enum.FontSize.Size14
- TextButton30.Text = "4"
- TextButton30.TextColor = BrickColor.new("Lime green")
- TextButton30.TextColor3 = Color3.new(0, 1, 0)
- TextButton30.TextScaled = true
- TextButton30.TextSize = 14
- TextButton30.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton30.TextStrokeTransparency = 0
- TextButton30.TextWrap = true
- TextButton30.TextWrapped = true
- TextButton31.Name = "5"
- TextButton31.Parent = Frame26
- TextButton31.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton31.BackgroundColor = BrickColor.new("Parsley green")
- TextButton31.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton31.BackgroundTransparency = 0.40000000596046
- TextButton31.BorderColor = BrickColor.new("Lime green")
- TextButton31.BorderColor3 = Color3.new(0, 1, 0)
- TextButton31.BorderSizePixel = 3
- TextButton31.LayoutOrder = 5
- TextButton31.ZIndex = 3
- TextButton31.AutoButtonColor = false
- TextButton31.FontSize = Enum.FontSize.Size14
- TextButton31.Text = "5"
- TextButton31.TextColor = BrickColor.new("Lime green")
- TextButton31.TextColor3 = Color3.new(0, 1, 0)
- TextButton31.TextScaled = true
- TextButton31.TextSize = 14
- TextButton31.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton31.TextStrokeTransparency = 0
- TextButton31.TextWrap = true
- TextButton31.TextWrapped = true
- TextButton32.Name = "6"
- TextButton32.Parent = Frame26
- TextButton32.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton32.BackgroundColor = BrickColor.new("Parsley green")
- TextButton32.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton32.BackgroundTransparency = 0.40000000596046
- TextButton32.BorderColor = BrickColor.new("Lime green")
- TextButton32.BorderColor3 = Color3.new(0, 1, 0)
- TextButton32.BorderSizePixel = 3
- TextButton32.LayoutOrder = 6
- TextButton32.ZIndex = 3
- TextButton32.AutoButtonColor = false
- TextButton32.FontSize = Enum.FontSize.Size14
- TextButton32.Text = "6"
- TextButton32.TextColor = BrickColor.new("Lime green")
- TextButton32.TextColor3 = Color3.new(0, 1, 0)
- TextButton32.TextScaled = true
- TextButton32.TextSize = 14
- TextButton32.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton32.TextStrokeTransparency = 0
- TextButton32.TextWrap = true
- TextButton32.TextWrapped = true
- TextButton33.Name = "7"
- TextButton33.Parent = Frame26
- TextButton33.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton33.BackgroundColor = BrickColor.new("Parsley green")
- TextButton33.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton33.BackgroundTransparency = 0.40000000596046
- TextButton33.BorderColor = BrickColor.new("Lime green")
- TextButton33.BorderColor3 = Color3.new(0, 1, 0)
- TextButton33.BorderSizePixel = 3
- TextButton33.LayoutOrder = 7
- TextButton33.ZIndex = 3
- TextButton33.AutoButtonColor = false
- TextButton33.FontSize = Enum.FontSize.Size14
- TextButton33.Text = "7"
- TextButton33.TextColor = BrickColor.new("Lime green")
- TextButton33.TextColor3 = Color3.new(0, 1, 0)
- TextButton33.TextScaled = true
- TextButton33.TextSize = 14
- TextButton33.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton33.TextStrokeTransparency = 0
- TextButton33.TextWrap = true
- TextButton33.TextWrapped = true
- TextButton34.Name = "8"
- TextButton34.Parent = Frame26
- TextButton34.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton34.BackgroundColor = BrickColor.new("Parsley green")
- TextButton34.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton34.BackgroundTransparency = 0.40000000596046
- TextButton34.BorderColor = BrickColor.new("Lime green")
- TextButton34.BorderColor3 = Color3.new(0, 1, 0)
- TextButton34.BorderSizePixel = 3
- TextButton34.LayoutOrder = 8
- TextButton34.ZIndex = 3
- TextButton34.AutoButtonColor = false
- TextButton34.FontSize = Enum.FontSize.Size14
- TextButton34.Text = "8"
- TextButton34.TextColor = BrickColor.new("Lime green")
- TextButton34.TextColor3 = Color3.new(0, 1, 0)
- TextButton34.TextScaled = true
- TextButton34.TextSize = 14
- TextButton34.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton34.TextStrokeTransparency = 0
- TextButton34.TextWrap = true
- TextButton34.TextWrapped = true
- TextButton35.Name = "9"
- TextButton35.Parent = Frame26
- TextButton35.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton35.BackgroundColor = BrickColor.new("Parsley green")
- TextButton35.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton35.BackgroundTransparency = 0.40000000596046
- TextButton35.BorderColor = BrickColor.new("Lime green")
- TextButton35.BorderColor3 = Color3.new(0, 1, 0)
- TextButton35.BorderSizePixel = 3
- TextButton35.LayoutOrder = 9
- TextButton35.ZIndex = 3
- TextButton35.AutoButtonColor = false
- TextButton35.FontSize = Enum.FontSize.Size14
- TextButton35.Text = "9"
- TextButton35.TextColor = BrickColor.new("Lime green")
- TextButton35.TextColor3 = Color3.new(0, 1, 0)
- TextButton35.TextScaled = true
- TextButton35.TextSize = 14
- TextButton35.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton35.TextStrokeTransparency = 0
- TextButton35.TextWrap = true
- TextButton35.TextWrapped = true
- TextButton36.Name = "0"
- TextButton36.Parent = Frame26
- TextButton36.Size = UDim2.new(0.200000003, 0, 1, 0)
- TextButton36.BackgroundColor = BrickColor.new("Parsley green")
- TextButton36.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton36.BackgroundTransparency = 0.40000000596046
- TextButton36.BorderColor = BrickColor.new("Lime green")
- TextButton36.BorderColor3 = Color3.new(0, 1, 0)
- TextButton36.BorderSizePixel = 3
- TextButton36.LayoutOrder = 10
- TextButton36.ZIndex = 3
- TextButton36.AutoButtonColor = false
- TextButton36.FontSize = Enum.FontSize.Size14
- TextButton36.Text = "0"
- TextButton36.TextColor = BrickColor.new("Lime green")
- TextButton36.TextColor3 = Color3.new(0, 1, 0)
- TextButton36.TextScaled = true
- TextButton36.TextSize = 14
- TextButton36.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton36.TextStrokeTransparency = 0
- TextButton36.TextWrap = true
- TextButton36.TextWrapped = true
- UIGridLayout37.Parent = Frame26
- UIGridLayout37.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIGridLayout37.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout37.VerticalAlignment = Enum.VerticalAlignment.Center
- UIGridLayout37.CellPadding = UDim2.new(0, 10, 0, 10)
- UIGridLayout37.CellSize = UDim2.new(0, 70, 0, 70)
- UIGridLayout37.FillDirectionMaxCells = 4
- Frame38.Name = "Enter"
- Frame38.Parent = Frame26
- Frame38.Size = UDim2.new(0, 100, 0, 100)
- Frame38.BackgroundColor = BrickColor.new("Institutional white")
- Frame38.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame38.BackgroundTransparency = 1
- Frame38.LayoutOrder = 11
- Frame38.ZIndex = 3
- TextButton39.Name = "Button"
- TextButton39.Parent = Frame38
- TextButton39.Size = UDim2.new(2, 10, 1, 0)
- TextButton39.BackgroundColor = BrickColor.new("Parsley green")
- TextButton39.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextButton39.BackgroundTransparency = 0.40000000596046
- TextButton39.BorderColor = BrickColor.new("Lime green")
- TextButton39.BorderColor3 = Color3.new(0, 1, 0)
- TextButton39.BorderSizePixel = 3
- TextButton39.LayoutOrder = 1
- TextButton39.ZIndex = 3
- TextButton39.AutoButtonColor = false
- TextButton39.Font = Enum.Font.SourceSansSemibold
- TextButton39.FontSize = Enum.FontSize.Size14
- TextButton39.Text = "Enter"
- TextButton39.TextColor = BrickColor.new("Lime green")
- TextButton39.TextColor3 = Color3.new(0, 1, 0)
- TextButton39.TextScaled = true
- TextButton39.TextSize = 14
- TextButton39.TextStrokeColor3 = Color3.new(0, 0.666667, 0)
- TextButton39.TextStrokeTransparency = 0
- TextButton39.TextWrap = true
- TextButton39.TextWrapped = true
- Folder40.Name = "WrittenDisplay"
- Folder40.Parent = Frame26
- TextLabel41.Name = "Display"
- TextLabel41.Parent = Folder40
- TextLabel41.Position = UDim2.new(0, 0, 1, 0)
- TextLabel41.Size = UDim2.new(1, 0, 0, 40)
- TextLabel41.BackgroundColor = BrickColor.new("Parsley green")
- TextLabel41.BackgroundColor3 = Color3.new(0, 0.333333, 0)
- TextLabel41.BackgroundTransparency = 1
- TextLabel41.BorderColor = BrickColor.new("Lime green")
- TextLabel41.BorderColor3 = Color3.new(0, 1, 0)
- TextLabel41.BorderSizePixel = 3
- TextLabel41.Font = Enum.Font.SourceSansSemibold
- TextLabel41.FontSize = Enum.FontSize.Size48
- TextLabel41.Text = ""
- TextLabel41.TextColor = BrickColor.new("Lime green")
- TextLabel41.TextColor3 = Color3.new(0, 0.666667, 0)
- TextLabel41.TextScaled = true
- TextLabel41.TextSize = 45
- TextLabel41.TextStrokeColor3 = Color3.new(0, 0.333333, 0)
- TextLabel41.TextStrokeTransparency = 0.5
- TextLabel41.TextWrap = true
- TextLabel41.TextWrapped = true
- TextButton42.Name = "Close"
- TextButton42.Parent = Frame22
- TextButton42.Position = UDim2.new(1, 5, 0.5, 10)
- TextButton42.Size = UDim2.new(0.200000003, 0, 0.150000006, 0)
- TextButton42.BackgroundColor = BrickColor.new("CGA brown")
- TextButton42.BackgroundColor3 = Color3.new(1, 0.333333, 0)
- TextButton42.BackgroundTransparency = 0.60000002384186
- TextButton42.BorderColor = BrickColor.new("Deep orange")
- TextButton42.BorderColor3 = Color3.new(1, 0.666667, 0)
- TextButton42.BorderSizePixel = 4
- TextButton42.AutoButtonColor = false
- TextButton42.Font = Enum.Font.Highway
- TextButton42.FontSize = Enum.FontSize.Size14
- TextButton42.Text = "Close"
- TextButton42.TextColor = BrickColor.new("New Yeller")
- TextButton42.TextColor3 = Color3.new(1, 1, 0)
- TextButton42.TextScaled = true
- TextButton42.TextSize = 14
- TextButton42.TextStrokeColor3 = Color3.new(1, 0.666667, 0)
- TextButton42.TextStrokeTransparency = 0
- TextButton42.TextWrap = true
- TextButton42.TextWrapped = true
- TextLabel43.Name = "StartInfo"
- TextLabel43.Parent = SurfaceGui5
- TextLabel43.Position = UDim2.new(0, 0, 0.300000012, 0)
- TextLabel43.Size = UDim2.new(1, 0, 0.300000012, 0)
- TextLabel43.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel43.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel43.BackgroundTransparency = 1
- TextLabel43.Font = Enum.Font.SourceSansSemibold
- TextLabel43.FontSize = Enum.FontSize.Size14
- TextLabel43.Text = "Enter the keycard to have access!"
- TextLabel43.TextColor = BrickColor.new("Lime green")
- TextLabel43.TextColor3 = Color3.new(0, 1, 0)
- TextLabel43.TextScaled = true
- TextLabel43.TextSize = 14
- TextLabel43.TextStrokeColor3 = Color3.new(0, 0.333333, 0)
- TextLabel43.TextWrap = true
- TextLabel43.TextWrapped = true
- SurfaceLight44.Parent = Part4
- SurfaceLight44.Face = Enum.NormalId.Back
- SurfaceLight44.Range = 15
- SurfaceLight44.Shadows = true
- Model45.Name = "CardReader"
- Model45.Parent = Model1
- Part46.Name = "CardReader"
- Part46.Parent = Model45
- Part46.CFrame = CFrame.new(4.10816193, 3.50000501, 47.0475388, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part46.Position = Vector3.new(4.10816193, 3.50000501, 47.0475388)
- Part46.Color = Color3.new(0, 0, 0)
- Part46.Size = Vector3.new(1, 0.200000003, 0.0500000007)
- Part46.Anchored = true
- Part46.BottomSurface = Enum.SurfaceType.Smooth
- Part46.BrickColor = BrickColor.new("Really black")
- Part46.Material = Enum.Material.Concrete
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part46.brickColor = BrickColor.new("Really black")
- UnionOperation47.Name = "CardReaderBack"
- UnionOperation47.Parent = Model45
- UnionOperation47.CFrame = CFrame.new(4.10814714, 3.50001001, 46.9975433, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- UnionOperation47.Position = Vector3.new(4.10814714, 3.50001001, 46.9975433)
- UnionOperation47.Color = Color3.new(0.356863, 0.364706, 0.411765)
- UnionOperation47.Size = Vector3.new(1.5, 0.500000477, 0.100013733)
- UnionOperation47.Anchored = true
- UnionOperation47.BrickColor = BrickColor.new("Smoky grey")
- UnionOperation47.Material = Enum.Material.DiamondPlate
- UnionOperation47.brickColor = BrickColor.new("Smoky grey")
- ModuleScript48.Name = "Settings"
- ModuleScript48.Parent = Model1
- table.insert(cors,sandbox(ModuleScript48,function()
- return {
- AccessCode = "6921", -- Only numbers! If no numbers found, default code will be used! Max 12 digits!
- TimeBeforeExplosion = 90, -- in seconds
- Radius = 1000, -- How big the explosion will be (in studs)
- KeycardAccess = { -- Enter keycard's TOOL NAME and set it to true to grant that tool access
- ["[SCP] Card-Omni"] = true,
- ["[SCP] Card-L5"] = false,
- ["[SCP] Card-L4"] = false,
- ["[SCP] Card-L3"] = false,
- ["[SCP] Card-L2"] = false,
- ["[SCP] Card-L1"] = false,
- ["[SCP] Delta-T"] = true
- },
- UnanchorParts = 10, -- if all axis of a part's size are smaller than _this_ studs, then part gets unanchored in contact of explosion
- DestroyParts = 3, -- if all axis of a part's size are smaller than _this_ studs, then part gets destroyed
- DestroyLights = true,
- DestroyTextures = true,
- DestroySpawns = false, -- Will destroy SpawnLocations if true, if false, it wont and it wont also unanchor small spawns
- MaterialEffects = { -- Effects applied to parts who have these materials and are in fireball
- Colors = {Color3.fromRGB(27,42,53),Color3.fromRGB(17,17,17),Color3.fromRGB(21,21,21),Color3.fromRGB(35,35,35),Color3.fromRGB(69,69,69),Color3.fromRGB(90,95,98),Color3.fromRGB(50,50,50),Color3.fromRGB(42,42,42),Color3.fromRGB(0,0,0)}, -- Burned stuff will have random color of these
- Wood = {Material = Enum.Material.Slate},
- WoodPlanks = {Material = Enum.Material.Slate},
- Grass = {Material = Enum.Material.Sand},
- Glass = {Material = Enum.Material.Sand},
- Ice = {Material = Enum.Material.Slate},
- Plastic = {Material = Enum.Material.Slate},
- SmoothPlastic = {Material = Enum.Material.Slate},
- Foil = {Material = Enum.Material.Concrete},
- Metal = {Material = Enum.Material.CorrodedMetal},
- DiamondPlate = {Material = Enum.Material.CorrodedMetal},
- Neon = {Material = Enum.Material.Pebble},
- Fabric = {Material = Enum.Material.Concrete}
- }
- }
- end))
- Folder49.Name = "Assets"
- Folder49.Parent = Model1
- Sound50.Name = "ExplosionSFX"
- Sound50.Parent = Folder49
- Sound50.SoundId = "rbxassetid://306225095"
- Sound50.Volume = 1
- Sound51.Name = "Announcement"
- Sound51.Parent = Folder49
- Sound51.SoundId = "rbxassetid://421256280"
- Sound51.Volume = 1
- Sound52.Name = "Alarm"
- Sound52.Parent = Folder49
- Sound52.Looped = true
- Sound52.SoundId = "rbxassetid://421254005"
- Sound52.Volume = 1
- Sky53.Parent = Folder49
- Sky53.SkyboxBk = "http://www.roblox.com/asset/?version=1&id=1012890"
- Sky53.SkyboxDn = "http://www.roblox.com/asset/?version=1&id=1012891"
- Sky53.SkyboxFt = "http://www.roblox.com/asset/?version=1&id=1012887"
- Sky53.SkyboxLf = "http://www.roblox.com/asset/?version=1&id=1012889"
- Sky53.SkyboxRt = "http://www.roblox.com/asset/?version=1&id=1012888"
- Sky53.SkyboxUp = "http://www.roblox.com/asset/?version=1&id=1014449"
- Script54.Name = "MainScript"
- Script54.Parent = Model1
- table.insert(cors,sandbox(Script54,function()
- local Settings = require(script.Parent:WaitForChild("Settings"))
- script.Parent:WaitForChild("Settings"):Destroy()
- local AssetsF = script.Parent:WaitForChild("Assets")
- local CardReader = script.Parent:WaitForChild("CardReader"):WaitForChild("CardReader")
- local Light = script.Parent:WaitForChild("Screen"):WaitForChild("Screen"):WaitForChild("SurfaceLight")
- local UI = script.Parent:WaitForChild("Screen"):WaitForChild("Screen"):WaitForChild("UI")
- local CountdownContainer = UI:WaitForChild("CountdownContainer")
- local MainContainer = UI:WaitForChild("MainContainer")
- local abs, ceil, floor = math.abs,math.ceil,math.floor
- local TweenServ = game:GetService("TweenService")
- local RunService = game:GetService("RunService")
- local UIData = {
- StartInfo = UI:WaitForChild("StartInfo"),
- Credit = UI:WaitForChild("Credit")
- }
- --CountdownBar UI
- UIData.CdwnBar = CountdownContainer:WaitForChild("CountdownBar")
- UIData.CdwnTime = UIData.CdwnBar:WaitForChild("Other"):WaitForChild("Countdown")
- UIData.CdwnCircle = UIData.CdwnBar:WaitForChild("CircleContainer"):WaitForChild("Circle")
- UIData.BGBarF = UIData.CdwnBar:WaitForChild("BGBar")
- UIData.BGBar = UIData.BGBarF:WaitForChild("Bar")
- UIData.HPBarF = UIData.CdwnBar:WaitForChild("HPBar")
- UIData.HPBar = UIData.HPBarF:WaitForChild("Bar")
- --MainContainer UI
- UIData.MainInfo = MainContainer:WaitForChild("Info")
- UIData.MainInfoT = MainContainer:WaitForChild("InfoTitle")
- UIData.MainClose = MainContainer:WaitForChild("Close")
- UIData.MainCodeBut = MainContainer:WaitForChild("CodeButton")
- UIData.MainCode = MainContainer:WaitForChild("CodePanel")
- local MainWritten = UIData.MainCode:WaitForChild("WrittenDisplay"):WaitForChild("Display")
- UIData.MainEnter = UIData.MainCode:WaitForChild("Enter"):WaitForChild("Button")
- --Code Buttons UI
- UIData.Main1 = UIData.MainCode:WaitForChild("1")
- UIData.Main2 = UIData.MainCode:WaitForChild("2")
- UIData.Main3 = UIData.MainCode:WaitForChild("3")
- UIData.Main4 = UIData.MainCode:WaitForChild("4")
- UIData.Main5 = UIData.MainCode:WaitForChild("5")
- UIData.Main6 = UIData.MainCode:WaitForChild("6")
- UIData.Main7 = UIData.MainCode:WaitForChild("7")
- UIData.Main8 = UIData.MainCode:WaitForChild("8")
- UIData.Main9 = UIData.MainCode:WaitForChild("9")
- UIData.Main0 = UIData.MainCode:WaitForChild("0")
- -- Just renames my username in credits
- UIData.Credit.Text = "Made by "..game.Players:GetNameFromUserIdAsync(24502450)
- --Setting up
- UIData.MainInfo.Text = "To launch or abort, press the button to right and enter the correct code. Nuke will destroy everything in ".. abs(Settings.Radius).." stud radius!"
- MainWritten.Text = ""
- UIData.CdwnCircle.Position = UDim2.new(1,-34,0,0)
- UIData.CdwnCircle.ImageColor3 = Color3.fromRGB(0,255,0)
- UIData.HPBar.Size = UDim2.new(1,0,1,0) UIData.HPBarF.Size = UDim2.new(1,0,1,0)
- UIData.BGBar.Size = UDim2.new(0,0,1,0) UIData.BGBar.Position = UDim2.new(0,0,0,0) UIData.BGBarF.Size = UDim2.new(0,0,1,0) UIData.BGBarF.Position = UDim2.new(1,0,0,0)
- --open pos 0,0,.825,0
- CountdownContainer.Position = UDim2.new(0,0,1.1,0)
- --open pos .65,0,.175,0
- UIData.MainCode.Position = UDim2.new(1,5,.175,0)
- --open pos .05,0,0,0
- UIData.MainInfoT.Position = UDim2.new(-.45,0,0,0)
- --open pos .05,0,.125,0
- UIData.MainInfoT.Position = UDim2.new(-.45,0,.125,0)
- --open pos .675,0,.35,-10
- UIData.MainCodeBut.Position = UDim2.new(1,5,.35,-10)
- --open pos .675,0,.5,10
- UIData.MainClose.Position = UDim2.new(1,5,.5,10)
- local Tweens = {
- StartInfo1 = TweenServ:Create(UIData.StartInfo,TweenInfo.new(.5),{TextTransparency = 1}),
- StartInfo2 = TweenServ:Create(UIData.StartInfo,TweenInfo.new(.7),{TextTransparency = 0}),
- InfoT1 = TweenServ:Create(UIData.MainInfoT,TweenInfo.new(.7, Enum.EasingStyle.Back,Enum.EasingDirection.Out),{Position = UDim2.new(0.05,0,0,0)}),
- InfoT2 = TweenServ:Create(UIData.MainInfoT,TweenInfo.new(.6, Enum.EasingStyle.Back,Enum.EasingDirection.In),{Position = UDim2.new(-0.45,0,0,0)}),
- Info1 = TweenServ:Create(UIData.MainInfo,TweenInfo.new(.7, Enum.EasingStyle.Back,Enum.EasingDirection.Out),{Position = UDim2.new(0.05,0,.125,0)}),
- Info2 = TweenServ:Create(UIData.MainInfo,TweenInfo.new(.6, Enum.EasingStyle.Back,Enum.EasingDirection.In),{Position = UDim2.new(-0.45,0,.125,0)}),
- CodeB1 = TweenServ:Create(UIData.MainCodeBut,TweenInfo.new(.7, Enum.EasingStyle.Back,Enum.EasingDirection.Out),{Position = UDim2.new(0.675,0,.35,-10)}),
- CodeB2 = TweenServ:Create(UIData.MainCodeBut,TweenInfo.new(.6, Enum.EasingStyle.Back,Enum.EasingDirection.In),{Position = UDim2.new(1,5,.35,-10)}),
- CloseB1 = TweenServ:Create(UIData.MainClose,TweenInfo.new(.7, Enum.EasingStyle.Back,Enum.EasingDirection.Out),{Position = UDim2.new(0.675,0,.5,10)}),
- CloseB2 = TweenServ:Create(UIData.MainClose,TweenInfo.new(.6, Enum.EasingStyle.Back,Enum.EasingDirection.In),{Position = UDim2.new(1,5,.5,10)}),
- Code1 = TweenServ:Create(UIData.MainCode,TweenInfo.new(.5, Enum.EasingStyle.Back,Enum.EasingDirection.Out),{Position = UDim2.new(0.65,0,.175,0)}),
- Code2 = TweenServ:Create(UIData.MainCode,TweenInfo.new(.5, Enum.EasingStyle.Back,Enum.EasingDirection.In),{Position = UDim2.new(1,5,.175,0)}),
- CdwnF1 = TweenServ:Create(CountdownContainer,TweenInfo.new(.5,Enum.EasingStyle.Back,Enum.EasingDirection.Out),{Position = UDim2.new(0,0,.825,0)}),
- CdwnF2 = TweenServ:Create(CountdownContainer,TweenInfo.new(.5,Enum.EasingStyle.Back,Enum.EasingDirection.In),{Position = UDim2.new(0,0,1.1,0)})
- }
- --[ Making SURE THE TWEENS MAKE GUIS END UP IN RIGHT PLACE AT END >:( ]--
- Tweens.InfoT1.Completed:Connect(function() UIData.MainInfoT.Position = UDim2.new(0.05,0,0,0) end)
- Tweens.InfoT2.Completed:Connect(function() UIData.MainInfoT.Position = UDim2.new(-0.45,0,0,0) end)
- Tweens.Info1.Completed:Connect(function() UIData.MainInfo.Position = UDim2.new(0.05,0,0.125,0) end)
- Tweens.Info2.Completed:Connect(function() UIData.MainInfo.Position = UDim2.new(-0.45,0,0.125,0) end)
- Tweens.CodeB1.Completed:Connect(function() UIData.MainCodeBut.Position = UDim2.new(0.675,0,.35,-10) end)
- Tweens.CodeB2.Completed:Connect(function() UIData.MainCodeBut.Position = UDim2.new(1,5,.35,-10) end)
- Tweens.CloseB1.Completed:Connect(function() UIData.MainClose.Position = UDim2.new(0.675,0,.5,10) end)
- Tweens.CloseB2.Completed:Connect(function() UIData.MainClose.Position = UDim2.new(1,5,.5,10) end)
- Tweens.Code1.Completed:Connect(function() UIData.MainCode.Position = UDim2.new(0.65,0,.175,0) end)
- Tweens.Code2.Completed:Connect(function() UIData.MainCode.Position = UDim2.new(1,5,.175,0) end)
- Tweens.CdwnF1.Completed:Connect(function() CountdownContainer.Position = UDim2.new(0,0,.825,0) end)
- Tweens.CdwnF2.Completed:Connect(function() CountdownContainer.Position = UDim2.new(0,0,1.1,0) end)
- local Code = ""
- local Code = Settings.AccessCode:gsub("%D","")
- if Code == "" or #Code > 12 then Code = "6921" end
- --local TimeLeft = Settings.TimeBeforeExplosion
- local Counting = false
- local Exploding = false
- local Explosion, ExplM
- local Destroyed = {}
- RunService.Stepped:Connect(function(_,taim)
- local curT = tick()
- if Counting and not Exploding then
- local TimeLeft = Counting+Settings.TimeBeforeExplosion-curT
- if TimeLeft <= 0 then -- Uh oh! NUKE!!!!
- Exploding = tick()
- Explosion = Instance.new("Part")
- Explosion.Name = "Nuke"
- Explosion.Size = Vector3.new(1,1,1)
- Explosion.Anchored = true
- Explosion.Material = Enum.Material.Neon
- Explosion.Color = Color3.fromRGB(255,85,0)
- Explosion.Transparency = .42
- Explosion.CanCollide = false
- ExplM = Instance.new("SpecialMesh")
- ExplM.MeshType = Enum.MeshType.Sphere
- ExplM.Parent = Explosion
- Explosion.CFrame = script.Parent:WaitForChild("Screen"):WaitForChild("Screen").CFrame
- Explosion.Parent = script.Parent
- AssetsF:WaitForChild("Alarm"):Stop() AssetsF:WaitForChild("Alarm"):Destroy()
- AssetsF:WaitForChild("Announcement"):Stop() AssetsF:WaitForChild("Announcement"):Destroy()
- AssetsF:WaitForChild("ExplosionSFX").PlayOnRemove = true AssetsF:WaitForChild("ExplosionSFX"):Destroy()
- Light:Destroy()
- for i,v in pairs(game:GetService("Lighting"):GetChildren()) do
- if v.ClassName == "Sky" then
- v:Destroy()
- end
- end
- game:GetService("Lighting").TimeOfDay = "12:00:00"
- AssetsF:WaitForChild("Sky").Parent = game:GetService("Lighting")
- UI:Destroy()
- UIData = nil
- Tweens = nil
- else -- ok we still fine
- local asd = TimeLeft/Settings.TimeBeforeExplosion*(1/0.954)-.023
- if asd >= 1 then
- UIData.CdwnCircle.Position = UDim2.new(1,-34,0,0)
- elseif asd <= 0 then
- UIData.CdwnCircle.Position = UDim2.new(0,-34,0,0)
- else
- UIData.CdwnCircle.Position = UDim2.new(asd,-34,0,0)
- end
- UIData.HPBarF.Size = UDim2.new(TimeLeft/Settings.TimeBeforeExplosion,0,1,0)
- UIData.HPBar.Size = UDim2.new(Settings.TimeBeforeExplosion/TimeLeft,0,1,0)
- UIData.CdwnTime.Text = floor(TimeLeft*10)/10 .."s left"
- UIData.BGBarF.Position = UDim2.new(TimeLeft/Settings.TimeBeforeExplosion,0,0,0)
- UIData.BGBarF.Size = UDim2.new(abs(TimeLeft/Settings.TimeBeforeExplosion-1),0,1,0)
- UIData.BGBar.Size = UDim2.new(1/(1-TimeLeft/Settings.TimeBeforeExplosion),0,1,0)
- UIData.BGBar.Position = UDim2.new(1-(1/(1-TimeLeft/Settings.TimeBeforeExplosion)),0,0,0)
- local Alarm = AssetsF:WaitForChild("Alarm")
- if not Alarm.IsPlaying then
- Alarm:Play()
- end
- end
- elseif Exploding then
- local Exploding2 = (curT-Exploding)*100 -- Explosion lasts for around 10 secs per 1000 stud radius
- local p = Explosion.Position
- local function DestroyParts(ls)
- local pp = workspace:FindPartsInRegion3(Region3.new(Vector3.new(p.X-Exploding2,p.Y-Exploding2,p.Z-Exploding2), Vector3.new(p.X+Exploding2,p.Y+Exploding2,p.Z+Exploding2)),nil,math.huge)
- for i, v in pairs(pp) do
- if not Destroyed[v] and (v.CFrame.p-p).magnitude<=Exploding2 and v ~= Explosion then -- If not affected and in radius
- if v.Size.X <= Settings.DestroyParts and v.Size.Y <= Settings.DestroyParts and v.Size.Z <= Settings.DestroyParts then
- if not Settings.DestroySpawns and v.ClassName == "SpawnLocation" then
- else
- v:Destroy()
- end
- else
- Destroyed[v] = true
- local e = Instance.new("Explosion")
- e.Position = v.Position-Vector3.new(math.random(-100,100)/10,math.random(-100,100)/10,math.random(-100,100)/10)
- e.BlastRadius = math.random(10,17)
- e.BlastPressure = 210000*v.Size.magnitude
- e.Parent = workspace
- if Settings.DestroyLights then
- for a, av in pairs(v:GetDescendants()) do
- if av and av.ClassName == "SurfaceLight" or av.ClassName == "PointLight" or av.ClassName == "SpotLight" then
- av:Destroy()
- end
- end
- end
- if Settings.DestroyTextures then
- for a, av in pairs(v:GetDescendants()) do
- if av and av.ClassName == "Decal" or av.ClassName == "Texture" then
- av:Destroy()
- elseif av and av.ClassName == "FileMesh" or av.ClassName == "SpecialMesh" then
- av.TextureId = ""
- end
- end
- if v.ClassName == "MeshPart" then
- v.TextureID = ""
- end
- end
- if not Settings.DestroySpawns and v.ClassName == "SpawnLocation" then
- else
- if v.Size.X <= Settings.UnanchorParts and v.Size.Y <= Settings.UnanchorParts and v.Size.Z <= Settings.UnanchorParts then
- v.Anchored = false
- end
- end
- if Settings.MaterialEffects[tostring(v.Material):sub(15,#tostring(v.Material))] then
- for a, av in pairs(Settings.MaterialEffects[tostring(v.Material):sub(15,#tostring(v.Material))]) do
- v[a] = av
- end
- end
- v.Color = Settings.MaterialEffects.Colors[math.random(1,#Settings.MaterialEffects.Colors)]
- if v.ClassName == "NegateOperation" or v.ClassName == "UnionOperation" then
- v.UsePartColor = true
- end
- end
- end
- end
- end
- if Exploding2 >= Settings.Radius then
- DestroyParts()
- Explosion:Destroy()
- script:Destroy()
- else
- DestroyParts()
- ExplM.Scale = Vector3.new(Exploding2*2,Exploding2*2,Exploding2*2)
- end
- end
- end)
- CardReader.Touched:Connect(function(hit)
- if hit and UI then
- local ToolCheck = hit:FindFirstAncestorOfClass("Tool")
- if ToolCheck and Settings.KeycardAccess[ToolCheck.Name] then -- Valid keycard
- if UIData.StartInfo.TextTransparency == 0 and UIData.MainClose.Position == UDim2.new(1,5,.5,10) then -- verify that gui is closed
- Tweens.StartInfo1:Play()
- Tweens.InfoT1:Play()
- Tweens.CodeB1:Play()
- wait(.1)
- Tweens.Info1:Play()
- Tweens.CloseB1:Play()
- end
- end
- end
- end)
- --[ Thanks Roblox Wiki for 2D Collision tutorial! ]--
- local function collides(g1p,g1s,g2p,g2s)
- return ((g1p[1] < g2p[1] + g2s[1] and g1p[1] + g1s[1] > g2p[1]) and (g1p[2] < g2p[2] + g2s[2] and g1p[2] + g1s[2] > g2p[2]));
- end;
- -------------------------------------------------------------------
- local InputCode = ""
- local function ButtonClicked(colliding)
- if colliding then
- if colliding == UIData.MainClose and UIData.StartInfo.TextTransparency == 1 and UIData.MainClose.Position == UDim2.new(.675,0,.5,10) then -- Close UI
- Tweens.Info2:Play()
- Tweens.CodeB2:Play()
- wait(.1)
- Tweens.StartInfo2:Play()
- Tweens.InfoT2:Play()
- Tweens.CloseB2:Play()
- elseif colliding == UIData.MainCodeBut and UIData.MainClose.Position == UDim2.new(.675,0,.5,10) and UIData.MainCode.Position == UDim2.new(1,5,.175,0) then -- Open Code panel
- MainWritten.Text = ""
- InputCode = ""
- Tweens.CodeB2:Play()
- wait(.1)
- Tweens.CloseB2:Play()
- wait(.4)
- Tweens.Code1:Play()
- elseif (colliding == UIData.Main0 or colliding == UIData.Main1 or colliding == UIData.Main2 or colliding == colliding == UIData.Main3 or colliding == UIData.Main4 or colliding == UIData.Main5
- or colliding == UIData.Main6 or colliding == UIData.Main7 or colliding == UIData.Main8 or colliding == UIData.Main9) and UIData.MainCode.Position == UDim2.new(0.65,0,.175,0) then
- if #InputCode == 12 then -- Overflow
- MainWritten.Text = ""
- InputCode = ""
- Tweens.Code2:Play()
- wait(.4)
- Tweens.CodeB1:Play()
- wait(.1)
- Tweens.CloseB1:Play()
- else
- MainWritten.Text = MainWritten.Text.."●"
- InputCode = InputCode..colliding.Name
- end
- elseif colliding == UIData.MainEnter and UIData.MainCode.Position == UDim2.new(0.65,0,.175,0) then -- Accepting code
- if InputCode == Code then -- Code is correct!
- if not Counting then -- Starting launch timer
- Counting = tick()
- local LaunchButSet = {Text = "Abort",BackgroundColor3 = Color3.fromRGB(0,85,0),BorderColor3 = Color3.fromRGB(0,255,0),TextColor3 = Color3.fromRGB(0,255,0),TextStrokeColor3 = Color3.fromRGB(0,170,0)}
- for a, av in pairs(LaunchButSet) do
- UIData.MainCodeBut[a] = av
- end
- UIData.CdwnTime.Text = floor(Settings.TimeBeforeExplosion*10)/10 .."s left"
- AssetsF:WaitForChild("Announcement"):Play()
- Tweens.CdwnF1:Play()
- else
- Counting = false
- local LaunchButSet = {Text = "Launch",BackgroundColor3 = Color3.fromRGB(85,0,0),BorderColor3 = Color3.fromRGB(255,0,0),TextColor3 = Color3.fromRGB(255,0,0),TextStrokeColor3 = Color3.fromRGB(170,0,0)}
- for a, av in pairs(LaunchButSet) do
- UIData.MainCodeBut[a] = av
- end
- AssetsF:WaitForChild("Alarm"):Stop()
- AssetsF:WaitForChild("Announcement"):Stop()
- Tweens.CdwnF2:Play()
- UIData.CdwnTime.Text = "-s left"
- end
- UIData.MainWritten = ""
- InputCode = ""
- Tweens.Code2:Play()
- wait(.4)
- Tweens.CodeB1:Play()
- wait(.1)
- Tweens.CloseB1:Play()
- else -- Nevermind
- UIData.MainWritten = ""
- InputCode = ""
- Tweens.Code2:Play()
- wait(.4)
- Tweens.CodeB1:Play()
- wait(.1)
- Tweens.CloseB1:Play()
- end
- end
- end
- end
- for i, v in pairs(UI:GetDescendants()) do
- if v.ClassName == "TextButton" then
- v.MouseButton1Click:Connect(function()
- ButtonClicked(v)
- end)
- end
- end
- end))
- Part55.Name = "Wall"
- Part55.Parent = Model0
- Part55.CFrame = CFrame.new(-1.29183996, 4.15001106, 45.9475403, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part55.Position = Vector3.new(-1.29183996, 4.15001106, 45.9475403)
- Part55.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part55.Size = Vector3.new(14.2000027, 8.29999828, 2)
- Part55.Anchored = true
- Part55.BottomSurface = Enum.SurfaceType.Smooth
- Part55.BrickColor = BrickColor.new("Black")
- Part55.Material = Enum.Material.Pebble
- Part55.TopSurface = Enum.SurfaceType.Smooth
- Part55.brickColor = BrickColor.new("Black")
- Camera56.Name = "ThumbnailCamera"
- Camera56.Parent = Model0
- Camera56.CFrame = CFrame.new(-57.1991997, 5.33270502, -1.62332988, 0.999619782, -0.0013186523, 0.027545929, -0, 0.998856306, 0.0478162766, -0.0275774766, -0.0477980971, 0.998476267)
- Camera56.CoordinateFrame = CFrame.new(-57.1991997, 5.33270502, -1.62332988, 0.999619782, -0.0013186523, 0.027545929, -0, 0.998856306, 0.0478162766, -0.0275774766, -0.0477980971, 0.998476267)
- Camera56.Focus = CFrame.new(-57.2542915, 5.23707247, -3.62028241, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera56.focus = CFrame.new(-57.2542915, 5.23707247, -3.62028241, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- 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