Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat wait() until game:IsLoaded()
- local plr = game:GetService("Players").LocalPlayer
- local civisFolder = workspace:WaitForChild("Citizens")
- local policeFolder = workspace:WaitForChild("Police")
- local camFolder = workspace:WaitForChild("Cameras")
- local mapFolder = workspace:WaitForChild("Map")
- local civis = #civisFolder:GetChildren()
- local police = #policeFolder:GetChildren()
- local cameras = #camFolder:GetChildren()
- local HUD = Instance.new("ScreenGui")
- local Screen = Instance.new("Frame")
- local Drills = Instance.new("Frame")
- local UIListLayout = Instance.new("UIListLayout")
- local Characters = Instance.new("Frame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local Sniper = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local Amount = Instance.new("TextLabel")
- local Infantry = Instance.new("Frame")
- local TextLabel_2 = Instance.new("TextLabel")
- local Amount_2 = Instance.new("TextLabel")
- local Dozer = Instance.new("Frame")
- local TextLabel_3 = Instance.new("TextLabel")
- local Amount_3 = Instance.new("TextLabel")
- local Cloakers = Instance.new("Frame")
- local TextLabel_4 = Instance.new("TextLabel")
- local Amount_4 = Instance.new("TextLabel")
- local Shields = Instance.new("Frame")
- local TextLabel_5 = Instance.new("TextLabel")
- local Amount_5 = Instance.new("TextLabel")
- local Medics = Instance.new("Frame")
- local TextLabel_6 = Instance.new("TextLabel")
- local Amount_6 = Instance.new("TextLabel")
- local Tasers = Instance.new("Frame")
- local TextLabel_7 = Instance.new("TextLabel")
- local Amount_7 = Instance.new("TextLabel")
- local Civilians = Instance.new("Frame")
- local TextLabel_8 = Instance.new("TextLabel")
- local Amount_8 = Instance.new("TextLabel")
- local Hostages = Instance.new("Frame")
- local TextLabel_9 = Instance.new("TextLabel")
- local Amount_9 = Instance.new("TextLabel")
- HUD.Name = "HUD"
- HUD.Parent = game:GetService("CoreGui")
- HUD.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Screen.Name = "Screen"
- Screen.Parent = HUD
- Screen.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Screen.BackgroundTransparency = 1.000
- Screen.Size = UDim2.new(1, 0, 1, 0)
- Drills.Name = "Drills"
- Drills.Parent = Screen
- Drills.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Drills.Position = UDim2.new(0.065, 0, 0.884, 0)
- Drills.Size = UDim2.new(0, 436, 0, 52)
- Drills.BackgroundTransparency = 1
- UIListLayout.Parent = Drills
- UIListLayout.FillDirection = Enum.FillDirection.Horizontal
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0.0500000007, 0)
- Characters.Name = "Characters"
- Characters.Parent = Screen
- Characters.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Characters.BackgroundTransparency = 1.000
- Characters.Position = UDim2.new(0.672852695, 0, 0.0493827164, 0)
- Characters.Size = UDim2.new(0, 476, 0, 52)
- UIListLayout_2.Parent = Characters
- UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
- UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Right
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.Padding = UDim.new(0.0500000007, 0)
- Sniper.Name = "Sniper"
- Sniper.Parent = Characters
- Sniper.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Sniper.BackgroundTransparency = 0.800
- Sniper.BorderSizePixel = 7
- Sniper.Size = UDim2.new(0, 52, 0, 52)
- TextLabel.Parent = Sniper
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Size = UDim2.new(1, 0, 0.443076938, 0)
- TextLabel.Text = "Snipers"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- Amount.Name = "Amount"
- Amount.Parent = Sniper
- Amount.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount.BackgroundTransparency = 1.000
- Amount.Position = UDim2.new(0, 0, 0.564871848, 0)
- Amount.Size = UDim2.new(1, 0, 0.419572622, 0)
- Amount.Text = "0"
- Amount.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount.TextScaled = true
- Amount.TextSize = 14.000
- Amount.TextWrapped = true
- Infantry.Name = "Infantry"
- Infantry.Parent = Characters
- Infantry.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Infantry.BackgroundTransparency = 0.800
- Infantry.BorderSizePixel = 7
- Infantry.Size = UDim2.new(0, 52, 0, 52)
- TextLabel_2.Parent = Infantry
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.BackgroundTransparency = 1.000
- TextLabel_2.Size = UDim2.new(1, 0, 0.443076938, 0)
- TextLabel_2.Text = "Normal cops"
- TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14.000
- TextLabel_2.TextWrapped = true
- Amount_2.Name = "Amount"
- Amount_2.Parent = Infantry
- Amount_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount_2.BackgroundTransparency = 1.000
- Amount_2.Position = UDim2.new(0, 0, 0.564871848, 0)
- Amount_2.Size = UDim2.new(1, 0, 0.419572622, 0)
- Amount_2.Text = "0"
- Amount_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount_2.TextScaled = true
- Amount_2.TextSize = 14.000
- Amount_2.TextWrapped = true
- Dozer.Name = "Dozer"
- Dozer.Parent = Characters
- Dozer.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Dozer.BackgroundTransparency = 0.800
- Dozer.BorderSizePixel = 7
- Dozer.Size = UDim2.new(0, 52, 0, 52)
- TextLabel_3.Parent = Dozer
- TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_3.BackgroundTransparency = 1.000
- TextLabel_3.Size = UDim2.new(1, 0, 0.443076938, 0)
- TextLabel_3.Text = "Dozers"
- TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_3.TextScaled = true
- TextLabel_3.TextSize = 14.000
- TextLabel_3.TextWrapped = true
- Amount_3.Name = "Amount"
- Amount_3.Parent = Dozer
- Amount_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount_3.BackgroundTransparency = 1.000
- Amount_3.Position = UDim2.new(0, 0, 0.564871848, 0)
- Amount_3.Size = UDim2.new(1, 0, 0.419572622, 0)
- Amount_3.Text = "0"
- Amount_3.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount_3.TextScaled = true
- Amount_3.TextSize = 14.000
- Amount_3.TextWrapped = true
- Cloakers.Name = "Cloakers"
- Cloakers.Parent = Characters
- Cloakers.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Cloakers.BackgroundTransparency = 0.800
- Cloakers.BorderSizePixel = 7
- Cloakers.Size = UDim2.new(0, 52, 0, 52)
- TextLabel_4.Parent = Cloakers
- TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_4.BackgroundTransparency = 1.000
- TextLabel_4.Size = UDim2.new(1, 0, 0.443076938, 0)
- TextLabel_4.Text = "Cloakers"
- TextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_4.TextScaled = true
- TextLabel_4.TextSize = 14.000
- TextLabel_4.TextWrapped = true
- Amount_4.Name = "Amount"
- Amount_4.Parent = Cloakers
- Amount_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount_4.BackgroundTransparency = 1.000
- Amount_4.Position = UDim2.new(0, 0, 0.564871848, 0)
- Amount_4.Size = UDim2.new(1, 0, 0.419572622, 0)
- Amount_4.Text = "0"
- Amount_4.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount_4.TextScaled = true
- Amount_4.TextSize = 14.000
- Amount_4.TextWrapped = true
- Shields.Name = "Shields"
- Shields.Parent = Characters
- Shields.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Shields.BackgroundTransparency = 0.800
- Shields.BorderSizePixel = 7
- Shields.Size = UDim2.new(0, 52, 0, 52)
- TextLabel_5.Parent = Shields
- TextLabel_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_5.BackgroundTransparency = 1.000
- TextLabel_5.Size = UDim2.new(1, 0, 0.443076938, 0)
- TextLabel_5.Text = "Shields"
- TextLabel_5.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_5.TextScaled = true
- TextLabel_5.TextSize = 14.000
- TextLabel_5.TextWrapped = true
- Amount_5.Name = "Amount"
- Amount_5.Parent = Shields
- Amount_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount_5.BackgroundTransparency = 1.000
- Amount_5.Position = UDim2.new(0, 0, 0.564871848, 0)
- Amount_5.Size = UDim2.new(1, 0, 0.419572622, 0)
- Amount_5.Text = "0"
- Amount_5.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount_5.TextScaled = true
- Amount_5.TextSize = 14.000
- Amount_5.TextWrapped = true
- Medics.Name = "Medics"
- Medics.Parent = Characters
- Medics.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Medics.BackgroundTransparency = 0.800
- Medics.BorderSizePixel = 7
- Medics.Size = UDim2.new(0, 52, 0, 52)
- TextLabel_6.Parent = Medics
- TextLabel_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_6.BackgroundTransparency = 1.000
- TextLabel_6.Size = UDim2.new(1, 0, 0.443076938, 0)
- TextLabel_6.Text = "Medics"
- TextLabel_6.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_6.TextScaled = true
- TextLabel_6.TextSize = 14.000
- TextLabel_6.TextWrapped = true
- Amount_6.Name = "Amount"
- Amount_6.Parent = Medics
- Amount_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount_6.BackgroundTransparency = 1.000
- Amount_6.Position = UDim2.new(0, 0, 0.564871848, 0)
- Amount_6.Size = UDim2.new(1, 0, 0.419572622, 0)
- Amount_6.Text = "0"
- Amount_6.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount_6.TextScaled = true
- Amount_6.TextSize = 14.000
- Amount_6.TextWrapped = true
- Tasers.Name = "Tasers"
- Tasers.Parent = Characters
- Tasers.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Tasers.BackgroundTransparency = 0.800
- Tasers.BorderSizePixel = 7
- Tasers.Size = UDim2.new(0, 52, 0, 52)
- TextLabel_7.Parent = Tasers
- TextLabel_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_7.BackgroundTransparency = 1.000
- TextLabel_7.Size = UDim2.new(1, 0, 0.443076938, 0)
- TextLabel_7.Text = "Tasers"
- TextLabel_7.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_7.TextScaled = true
- TextLabel_7.TextSize = 14.000
- TextLabel_7.TextWrapped = true
- Amount_7.Name = "Amount"
- Amount_7.Parent = Tasers
- Amount_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount_7.BackgroundTransparency = 1.000
- Amount_7.Position = UDim2.new(0, 0, 0.564871848, 0)
- Amount_7.Size = UDim2.new(1, 0, 0.419572622, 0)
- Amount_7.Text = "0"
- Amount_7.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount_7.TextScaled = true
- Amount_7.TextSize = 14.000
- Amount_7.TextWrapped = true
- Civilians.Name = "Civilians"
- Civilians.Parent = Characters
- Civilians.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Civilians.BackgroundTransparency = 0.800
- Civilians.BorderSizePixel = 7
- Civilians.Size = UDim2.new(0, 52, 0, 52)
- TextLabel_8.Parent = Civilians
- TextLabel_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_8.BackgroundTransparency = 1.000
- TextLabel_8.Size = UDim2.new(1, 0, 0.443076938, 0)
- TextLabel_8.Text = "Civilians"
- TextLabel_8.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_8.TextScaled = true
- TextLabel_8.TextSize = 14.000
- TextLabel_8.TextWrapped = true
- Amount_8.Name = "Amount"
- Amount_8.Parent = Civilians
- Amount_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount_8.BackgroundTransparency = 1.000
- Amount_8.Position = UDim2.new(0, 0, 0.564871848, 0)
- Amount_8.Size = UDim2.new(1, 0, 0.419572622, 0)
- Amount_8.Text = "0"
- Amount_8.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount_8.TextScaled = true
- Amount_8.TextSize = 14.000
- Amount_8.TextWrapped = true
- Hostages.Name = "Hostages"
- Hostages.Parent = Characters
- Hostages.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Hostages.BackgroundTransparency = 0.800
- Hostages.BorderSizePixel = 7
- Hostages.Size = UDim2.new(0, 52, 0, 52)
- TextLabel_9.Parent = Hostages
- TextLabel_9.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_9.BackgroundTransparency = 1.000
- TextLabel_9.Size = UDim2.new(1, 0, 0.443076938, 0)
- TextLabel_9.Text = "Hostages"
- TextLabel_9.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_9.TextScaled = true
- TextLabel_9.TextSize = 14.000
- TextLabel_9.TextWrapped = true
- Amount_9.Name = "Amount"
- Amount_9.Parent = Hostages
- Amount_9.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Amount_9.BackgroundTransparency = 1.000
- Amount_9.Position = UDim2.new(0, 0, 0.564871848, 0)
- Amount_9.Size = UDim2.new(1, 0, 0.419572622, 0)
- Amount_9.Text = "0"
- Amount_9.TextColor3 = Color3.fromRGB(255, 255, 255)
- Amount_9.TextScaled = true
- Amount_9.TextSize = 14.000
- Amount_9.TextWrapped = true
- local aKills = 0
- local aHostages = 0
- local hostages = plr:WaitForChild("PlayerGui"):WaitForChild("SG_Package"):WaitForChild("MainGui"):WaitForChild("Hostages")
- local kills = plr:WaitForChild("PlayerGui"):WaitForChild("SG_Package"):WaitForChild("MainGui"):WaitForChild("Kills")
- kills.Visible = false
- hostages.Visible = false
- kills:GetPropertyChangedSignal("Visible"):Connect(function()
- kills.Visible = false
- end)
- hostages:GetPropertyChangedSignal("Visible"):Connect(function()
- hostages.Visible = false
- end)
- kills:WaitForChild("amount"):GetPropertyChangedSignal("Text"):Connect(function()
- aKills = kills:WaitForChild("amount").Text
- end)
- hostages:WaitForChild("amount"):GetPropertyChangedSignal("Text"):Connect(function()
- aHostages = hostages:WaitForChild("amount").Text
- end)
- function drillUI()
- local Drill = Instance.new("Frame")
- local Name = Instance.new("TextLabel")
- local TimeLeft = Instance.new("TextLabel")
- local Jammed = Instance.new("TextLabel")
- Drill.Name = "Drill"
- Drill.Parent = Drills
- Drill.BackgroundColor3 = Color3.fromRGB(213, 213, 213)
- Drill.BackgroundTransparency = 0.800
- Drill.BorderSizePixel = 7
- Drill.Size = UDim2.new(0, 52, 0, 52)
- Name.Name = "Name"
- Name.Parent = Drill
- Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Name.BackgroundTransparency = 1.000
- Name.Size = UDim2.new(1, 0, 0.270000011, 0)
- Name.Text = "Drill"
- Name.TextColor3 = Color3.fromRGB(255, 255, 255)
- Name.TextScaled = true
- Name.TextSize = 14.000
- Name.TextWrapped = true
- TimeLeft.Name = "TimeLeft"
- TimeLeft.Parent = Drill
- TimeLeft.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TimeLeft.BackgroundTransparency = 1.000
- TimeLeft.Position = UDim2.new(0, 0, 0.603333473, 0)
- TimeLeft.Size = UDim2.new(1, 0, 0.381111085, 0)
- TimeLeft.Text = "Time left: 0"
- TimeLeft.TextColor3 = Color3.fromRGB(255, 255, 255)
- TimeLeft.TextScaled = true
- TimeLeft.TextSize = 14.000
- TimeLeft.TextWrapped = true
- Jammed.Name = "Jammed"
- Jammed.Parent = Drill
- Jammed.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Jammed.BackgroundTransparency = 1.000
- Jammed.Position = UDim2.new(0, 0, 0.270000011, 0)
- Jammed.Size = UDim2.new(1, 0, 0.381111085, 0)
- Jammed.Visible = false
- Jammed.Text = "Jammed!"
- Jammed.TextColor3 = Color3.fromRGB(255, 0, 4)
- Jammed.TextScaled = true
- Jammed.TextSize = 14.000
- Jammed.TextWrapped = true
- return Drill
- end
- mapFolder.DescendantAdded:Connect(function(d)
- if d.Name == "Drill" then
- local Time = d:WaitForChild("Display").BG.Screen.TimeLeft
- local tl = tostring(string.split(Time.Text," ")[1])
- local ui = drillUI()
- ui:WaitForChild("TimeLeft").Text = tl
- Time.Changed:Connect(function(change)
- if change == "Text" then
- tl = tostring(string.split(Time.Text," ")[1])
- ui:WaitForChild("TimeLeft").Text = tl
- end
- end)
- d:GetPropertyChangedSignal("Name"):Connect(function()
- if d.Name == "Drill" then
- ui.Jammed.Visible = false
- else
- ui.Jammed.Visible = true
- end
- end)
- d.Parent.ChildRemoved:Connect(function(c)
- if c == d then
- game:GetService("Debris"):AddItem(ui,0)
- end
- end)
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- local riot,tas,doze,med,cl,inf,snipe = 0,0,0,0,0,0,0
- for i,c in pairs(policeFolder:GetChildren()) do
- local t = string.lower(c:WaitForChild("Type").Value)
- if string.match(t,"riot") then
- riot += 1
- elseif string.match(t,"taser") then
- tas += 1
- elseif string.match(t,"dozer") then
- doze += 1
- elseif string.match(t,"medic") then
- med += 1
- elseif string.match(t,"cloaker") then
- cl += 1
- elseif string.match(t,"sniper") or string.match(t,"marksman") then
- snipe += 1
- else
- inf += 1
- end
- end
- Tasers:WaitForChild("Amount").Text = tostring(tas)
- Shields:WaitForChild("Amount").Text = tostring(riot)
- Dozer:WaitForChild("Amount").Text = tostring(doze)
- Medics:WaitForChild("Amount").Text = tostring(med)
- Infantry:WaitForChild("Amount").Text = tostring(inf)
- Cloakers:WaitForChild("Amount").Text = tostring(cl)
- Hostages:WaitForChild("Amount").Text = tostring(aHostages)
- Civilians:WaitForChild("Amount").Text = tostring(#civisFolder:GetChildren())
- Sniper:WaitForChild("Amount").Text = tostring(snipe)
- end)
Add Comment
Please, Sign In to add comment