Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- TO DO LIST:
- purchase assets
- place infinite equipment
- card reader esp
- damage (long term)
- --]]
- -- Variables
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- pir = true
- if plr.PlayerGui:FindFirstChild('notofucker') then
- plr.PlayerGui.notofucker:Destroy()
- end
- active = false
- lootnum = 0
- pagers = 0
- espguard = false
- boxesp = false
- camesp = false
- camloop = false
- cardesp = false
- manageresp = false
- breach = false
- local gui = Instance.new('ScreenGui', plr.PlayerGui)
- local main = Instance.new('Frame', gui)
- local frame = Instance.new('Frame', main)
- local esphandler = Instance.new('Folder', main)
- local folder = Instance.new('Folder', frame)
- local box = Instance.new('TextBox', main)
- local deletefolder = Instance.new('Folder', main)
- -- Tables
- commands = {'objective', 'glass/break', 'glass/damage', 'unlock', 'loot', 'planks', 'safecrack', 'boxes', 'destroygui', 'card', 'esp/guard', 'esp/card', 'esp/cams', 'esp/manager', 'esp/boxes', 'loopcams','pager', 'tie','body', 'startdrill', 'grab/body', 'apply', 'grab/loot', 'grab/drill', 'breach'}
- -- Define
- gui.Name = 'notofucker'
- folder.Name = 'storage'
- esphandler.Name = 'ESP'
- main.Name = 'Main'
- main.BackgroundColor3 = Color3.new(255, 0, 255)
- main.BackgroundTransparency = 1
- main.BorderSizePixel = 0
- main.Position = UDim2.new(0.05, 0, 0.161, 0)
- main.Size = UDim2.new(0, 600, 0, 600)
- frame.Name = 'LFrame'
- frame.BackgroundColor3 = Color3.new(0.2431, 0.2431, 0.2431)
- frame.BorderSizePixel = 2
- frame.BorderColor3 = Color3.new(1, 1, 1)
- frame.Position = UDim2.new(0, 0, 0, -25)
- frame.Size = UDim2.new(0, 1071, 0, 539)
- box.Name = 'TB'
- box.TextColor3 = Color3.new(0, 1, 0)
- box.BackgroundColor3 = Color3.new(0.2431, 0.2431, 0.2431)
- box.BorderSizePixel = 2
- box.BorderColor3 = Color3.new(1, 1, 1)
- box.Position = UDim2.new(0, 0, 0.9, 0)
- box.Size = UDim2.new(0, 1071, 0, 30)
- box.ClearTextOnFocus = true
- box.MultiLine = false
- box.Font = 'SourceSansBold'
- box.Text = 'Enter command (press \'t\' to focus )'
- box.TextSize = 15
- box.TextTransparency = .2
- box.TextXAlignment = 'Left'
- -- Extras
- title = plr.PlayerGui.MainGui:WaitForChild('PlayerStats').LocalPlayerStats.PlayerName.PlayerTitle
- rank = plr.PlayerGui.MainGui.PlayerStats.LocalPlayerStats.PlayerName.PlayerRank
- dot = plr.PlayerGui.MainGui.PlayerStats.LocalPlayerStats.PlayerName.Frame.ColorDot
- ammo = plr.PlayerGui.MainGui.PlayerStats.LocalPlayerStats.PrimaryAmmo.Ammo
- sammo = plr.PlayerGui.MainGui.PlayerStats.LocalPlayerStats.SecondaryAmmo.Ammo
- stammo = plr.PlayerGui.MainGui.PlayerStats.LocalPlayerStats.SecondaryAmmo.TotalAmmo
- tammo = plr.PlayerGui.MainGui.PlayerStats.LocalPlayerStats.PrimaryAmmo.TotalAmmo
- ties = plr.PlayerGui.MainGui.PlayerStats.LocalPlayerStats.Supplies.CableTies.remaining
- gren = plr.PlayerGui.MainGui.PlayerStats.LocalPlayerStats.Supplies.Grenades.remaining
- equip = plr.PlayerGui.MainGui.PlayerStats.LocalPlayerStats.Supplies.Equipment.remaining
- rank.Text = '1337'
- if pir == false then
- for i,v in pairs (plr.PlayerGui.MainGui.PlayerStats:GetChildren()) do
- if v.Name ~= 'LocalPlayerStats' then
- v.PlayerName.PlayerTitle.Text = 'furry faggot'
- v.PlayerName.PlayerTitle.TextColor3 = Color3.new(1, 0, 0)
- v.PlayerName.PlayerRank.Text = '(gay)'
- v.PlayerName.PlayerRank.TextColor3 = Color3.new(1, 0, 0)
- v.PlayerName.Frame.ColorDot.ImageColor3 = Color3.new(1, 0, 0)
- end
- end
- end
- spawn(function()
- while wait() do
- for i = 0.6666, 1, .025 do
- title.TextColor3 = Color3.new(0, i, 1)
- rank.TextColor3 = Color3.new(0, i, 1)
- ammo.TextColor3 = Color3.new(0, i, 1)
- sammo.TextColor3 = Color3.new(0, i, 1)
- gren.TextColor3 = Color3.new(0, i, 1)
- equip.TextColor3 = Color3.new(0, i, 1)
- tammo.TextColor3 = Color3.new(0, i, 1)
- stammo.TextColor3 = Color3.new(0, i, 1)
- ties.TextColor3 = Color3.new(0, i, 1)
- dot.ImageColor3 = Color3.new(0, i, 1)
- wait()
- end
- for i = 0, 1, .025 do
- title.TextColor3 = Color3.new(i, 1, 1)
- rank.TextColor3 = Color3.new(i, 1, 1)
- ammo.TextColor3 = Color3.new(i, 1, 1)
- gren.TextColor3 = Color3.new(i, 1, 1)
- equip.TextColor3 = Color3.new(i, 1, 1)
- sammo.TextColor3 = Color3.new(i, 1, 1)
- tammo.TextColor3 = Color3.new(i, 1, 1)
- stammo.TextColor3 = Color3.new(i, 1, 1)
- ties.TextColor3 = Color3.new(i, 1, 1)
- dot.ImageColor3 = Color3.new(i, 1, 1)
- wait()
- end
- -- 1, 1, 1
- for i = 1, 0, -.025 do
- title.TextColor3 = Color3.new(1, 1, i)
- rank.TextColor3 = Color3.new(1, 1, i)
- ammo.TextColor3 = Color3.new(1, 1, i)
- gren.TextColor3 = Color3.new(1, 1, i)
- equip.TextColor3 = Color3.new(1, 1, i)
- sammo.TextColor3 = Color3.new(1, 1, i)
- tammo.TextColor3 = Color3.new(1, 1, i)
- stammo.TextColor3 = Color3.new(1, 1, i)
- ties.TextColor3 = Color3.new(1, 1, i)
- dot.ImageColor3 = Color3.new(1, 1, i)
- wait()
- end
- for i = 1, 0, -.025 do
- title.TextColor3 = Color3.new(1, i, 0)
- rank.TextColor3 = Color3.new(1, i, 0)
- ammo.TextColor3 = Color3.new(1, i, 0)
- gren.TextColor3 = Color3.new(1, i, 0)
- equip.TextColor3 = Color3.new(1, i, 0)
- sammo.TextColor3 = Color3.new(1, i, 0)
- tammo.TextColor3 = Color3.new(1, i, 0)
- stammo.TextColor3 = Color3.new(1, i, 0)
- ties.TextColor3 = Color3.new(1, i, 0)
- dot.ImageColor3 = Color3.new(1, i, 0)
- wait()
- end
- for i = 0, 1, .025 do
- title.TextColor3 = Color3.new(1, 0, i)
- rank.TextColor3 = Color3.new(1, 0, i)
- ammo.TextColor3 = Color3.new(1, 0, i)
- gren.TextColor3 = Color3.new(1, 0, i)
- equip.TextColor3 = Color3.new(1, 0, i)
- sammo.TextColor3 = Color3.new(1, 0, i)
- tammo.TextColor3 = Color3.new(1, 0, i)
- stammo.TextColor3 = Color3.new(1, 0, i)
- ties.TextColor3 = Color3.new(1, 0, i)
- dot.ImageColor3 = Color3.new(1, 0, i)
- wait()
- end
- for i = 0, 0.6666 , .025 do
- title.TextColor3 = Color3.new(1, i, 1)
- rank.TextColor3 = Color3.new(1, i, 1)
- ammo.TextColor3 = Color3.new(1, i, 1)
- gren.TextColor3 = Color3.new(1, i, 1)
- equip.TextColor3 = Color3.new(1, i, 1)
- sammo.TextColor3 = Color3.new(1, i, 1)
- tammo.TextColor3 = Color3.new(1, i, 1)
- stammo.TextColor3 = Color3.new(1, i, 1)
- ties.TextColor3 = Color3.new(1, i, 1)
- dot.ImageColor3 = Color3.new(1, i, 1)
- wait()
- end
- for i = 1, 0, -.025 do
- title.TextColor3 = Color3.new(i, 0.6666, 1)
- rank.TextColor3 = Color3.new(i, 0.6666, 1)
- ammo.TextColor3 = Color3.new(i, 0.6666, 1)
- gren.TextColor3 = Color3.new(i, 0.6666, 1)
- equip.TextColor3 = Color3.new(i, 0.6666, 1)
- sammo.TextColor3 = Color3.new(i, 0.6666, 1)
- tammo.TextColor3 = Color3.new(i, 0.6666, 1)
- stammo.TextColor3 = Color3.new(i, 0.6666, 1)
- ties.TextColor3 = Color3.new(i, 0.6666, 1)
- dot.ImageColor3 = Color3.new(i, 0.6666, 1)
- wait()
- end
- end
- end)
- -- Functions
- local function createText(val, extra)
- for i,v in pairs (folder:GetChildren()) do
- if v.Position == UDim2.new(0, 0, 0, 0) then
- v:Destroy()
- else
- v.Position = UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale, v.Position.Y.Offset - 15)
- end
- end
- h = Instance.new('TextLabel', folder)
- h.Name = 'guiText'
- if extra ~= '' then
- h.Text = ' > '..val..' ['..tostring(extra)..']'
- else
- h.Text = ' > '..val
- end
- h.TextColor3 = Color3.new(0, 1, 0)
- h.TextTransparency = .2
- h.BackgroundTransparency = 1
- h.Position = UDim2.new(0, 0, 0, 510)
- h.Size = UDim2.new(0, 569, 0, 20)
- h.TextSize = 12
- h.TextXAlignment = 'Left'
- h.Font = 'SourceSansBold'
- end
- local function createSpecial(val, extra)
- for i,v in pairs (folder:GetChildren()) do
- if v.Position == UDim2.new(0, 0, 0, 0) then
- v:Destroy()
- else
- v.Position = UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale, v.Position.Y.Offset - 15)
- end
- end
- h = Instance.new('TextLabel', folder)
- h.Name = 'guiText'
- if extra ~= '' then
- h.Text = ' > '..val..' ['..extra..']'
- else
- h.Text = ' > '..val
- end
- h.TextColor3 = Color3.new(1, 0, 0)
- h.TextTransparency = .2
- h.BackgroundTransparency = 1
- h.Position = UDim2.new(0, 0, 0, 510)
- h.Size = UDim2.new(0, 569, 0, 20)
- h.TextSize = 12
- h.TextXAlignment = 'Left'
- h.Font = 'SourceSansBold'
- end
- function findmanager()
- for i,v in pairs (game.Workspace.Citizens:GetChildren()) do
- if v:FindFirstChild('Type') then
- if v.Type.Value == 'Manager' then
- return(tostring(v))
- end
- end
- end
- end
- function findmanagerObject()
- for i,v in pairs (game.Workspace.Citizens:GetChildren()) do
- if v:FindFirstChild('Type') then
- if v.Type.Value == 'Manager' then
- return v
- end
- end
- end
- end
- function findNum(location, text)
- local p = 0
- for i,v in pairs (location:GetChildren()) do
- if v.Name == 'Azure' then
- p = p + 1
- end
- if i == #location:GetChildren() then
- return p, text
- end
- end
- end
- -- Start
- createSpecial('GUI created by Sinsane, enjoy!', '')
- createSpecial('Current list of commands:', '')
- for i,v in pairs (commands) do
- createText(v, '')
- end
- createSpecial('Pres q to toggle the GUI', '')
- mouse.KeyDown:connect(function(key)
- if key == 'z' then
- if breach == true then
- local obj = Instance.new('ObjectValue', deletefolder)
- local tran = Instance.new('IntValue', obj)
- obj.Name = 'Object'
- obj.Value = mouse.Target
- tran.Name = 'Transp'
- tran.Value = mouse.Target.Transparency
- mouse.Target.CanCollide = false
- mouse.Target.Transparency = .5
- end
- elseif key == 'm' then
- for i,v in pairs (deletefolder:GetChildren()) do
- v.Value.Transparency = 0
- v.Value.CanCollide = true
- v.Value.Transparency = v.Transp.Value
- v:Destroy()
- end
- end
- end)
- game:GetService('UserInputService').InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.T and not box:IsFocused() then
- wait()
- active = true
- box:CaptureFocus()
- elseif key.KeyCode == Enum.KeyCode.Q and not box:IsFocused() then
- main.Visible = not main.Visible
- elseif key.KeyCode == Enum.KeyCode.Return and active == true then
- active = false
- box:ReleaseFocus()
- -- START COMMANDS
- local t = box.Text
- if t == '' then
- box.Text = 'Enter command (press \'t\' to focus )'
- elseif t == 'unlock' then
- createText('unlocking started', 'go near doors/windows to unlock them')
- spawn(function()
- repeat
- for i,v in pairs (game.Workspace.Map:GetChildren()) do
- if v.Name == 'Door' or v.Name == 'CardReader' or v.Name == 'LockGate' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- end
- wait()
- until not game.Workspace:FindFirstChild('Door')
- createText('unlocking complete', '')
- end)
- elseif string.sub(t, 1,6) == 'glass/' then
- if string.sub(t, 7) == 'break' then
- for i,v in pairs (game.Workspace.Glass:GetChildren()) do
- if v.Name == 'Glass' then
- game.ReplicatedStorage.Assets.Remotes.HitObject:FireServer(v, true)
- end
- end
- createText('glass broken', '')
- elseif string.sub(t, 7) == 'damage' then
- for i,v in pairs (game.Workspace.Glass:GetChildren()) do
- if v.Name == 'Glass' then
- game.ReplicatedStorage.Assets.Remotes.HitObject:FireServer(v, false)
- end
- end
- createText('glass partially damaged', '')
- end
- elseif t == 'loot' then
- local toploot = #game.Workspace.Lootables:GetChildren()
- createText('loot grab started', 'go near loot to grab it')
- --repeat
- for i,v in pairs (game.Workspace.Lootables:GetChildren()) do
- if v.Name ~= 'JewelSpot' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- else
- for i,x in pairs (v:GetChildren()) do
- if x.Name == 'SmallJewels2' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(x)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(x)
- end
- end
- end
- end
- for i,v in pairs (game.Workspace.Map:GetChildren()) do
- if v.Name == 'OpenedSafe' then
- spawn(function()
- for i,x in pairs (v:GetChildren()) do
- if x:IsA('Folder') and x.Name ~= 'PosLoot' then
- for i,z in pairs (x:GetChildren()) do
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(z)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(z)
- end
- elseif x:IsA('Model') and x.Name ~= 'Wall' and x.Name ~= 'ForcedOpen' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(x)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(x)
- end
- end
- end)
- elseif v.Name == 'Atm' then
- spawn(function()
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v.Ints)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v.Ints)
- v:WaitForChild('AtmMoney')
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v.AtmMoney)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v.AtmMoney)
- end)
- elseif v.Name == 'GoldBars' then
- spawn(function()
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end)
- elseif v.Name == 'WoodPlanks' then
- spawn(function()
- for i,x in pairs (v:GetChildren()) do
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(x)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(x)
- end
- end)
- elseif v.Name == 'DepositBoxHolder' then
- spawn(function()
- for i,x in pairs (v.Boxes:GetChildren()) do
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(x)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(x)
- end
- end)
- end
- end
- for i,v in pairs (game.Workspace:GetChildren()) do
- if string.sub(v.Name, 1, 7) == 'Deposit' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- end
- --wait()
- --until toploot == lootnum
- createText('loot grab complete', '')
- elseif t == 'safecrack' then
- createText('safe crack started', 'go near a safe to open it')
- spawn(function()
- repeat
- for i,v in pairs (game.Workspace.Map:GetChildren()) do
- if v.Name == 'Safe' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- wait()
- end
- end
- wait()
- until not game.Workspace.Map:FindFirstChild('SafeSpots')
- createText('safe crack completed', '')
- end)
- elseif t == 'boxes' then
- if game.Workspace.SafeSpots:FindFirstChildWhichIsA('Model') then
- for i,v in pairs (game.Workspace.SafeSpots:GetChildren()) do
- if v:IsA('Model') then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- end
- createText('boxes grabbed', '')
- else
- createSpecial('no boxes found', '')
- end
- elseif t == 'destroygui' then
- gui:Destroy()
- elseif t == 'card' then
- createText('card grab started', '')
- spawn(function()
- if not game.Workspace.Map:FindFirstChild('KeyCard') and not game.Workspace.Map:FindFirstChild('DowntownKey') then
- if findmanager() ~= 'Citizen' then
- createSpecial('no cards or keys found', '')
- else
- createSpecial('no cards or keys found', 'Manager found, may have card')
- end
- else
- repeat
- spawn(function()
- for i,v in pairs (game.Workspace.Map:GetChildren()) do
- if v.Name == 'KeyCard' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- end
- end)
- spawn(function()
- for i,v in pairs (game.Workspace:GetChildren()) do
- if v.Name == 'DowntownKey' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- end
- end)
- wait()
- until not game.Workspace.Map:FindFirstChild('KeyCard') and not game.Workspace:FindFirstChild('DowntownKey')
- createText('card grab complete', '')
- end
- end)
- elseif t == 'pager' then
- if game.Workspace.Bodies:FindFirstChild('Pager') then
- for i,v in pairs(game.Workspace.Bodies:GetChildren()) do
- if v.Name == 'Pager' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- pagers = pagers + 1
- createText('pager answered', pagers..' used by script')
- end
- end
- else
- createSpecial('no pagers to answer', '')
- end
- elseif string.sub(t, 1,4) == 'esp/' and t ~= 'esp/' then
- if t == 'esp/guard' then
- if espguard == true then
- if game.Workspace.Police:FindFirstChild('Guard') then
- createText('guard esp activated', not espguard..', '..#game.Workspace.Police:FindFirstChild('Guard'))
- for i,v in pairs (esphandler:GetChildren()) do
- if v.Name == 'Guard' then
- v:Destroy()
- end
- end
- else
- createSpecial('no guards found', '')
- end
- else
- for i,v in pairs (game.Workspace.Police:GetChildren()) do
- for i,x in pairs (v:GetChildren()) do
- if x:IsA('Part') or x:IsA('UnionOperation') then
- local l = Instance.new('BoxHandleAdornment', esphandler)
- l.Name = 'Guard'
- l.AlwaysOnTop = true
- l.Adornee = x
- l.Transparency = .5
- l.Color3 = Color3.new(0, 0.6666, 1)
- l.Size = x.Size
- l.ZIndex = 10
- local q = Instance.new('StringValue', l)
- q.Name = 'Par'
- q.Value = x.Parent.Name
- end
- end
- end
- end
- espguard = not espguard
- elseif t == 'esp/boxes' then
- if boxesp == false then
- if game.Workspace.SafeSpots:FindFirstChildWhichIsA('Model') then
- createText('boxesp activated', true)
- for i,v in pairs (game.Workspace.SafeSpots:GetChildren()) do
- if v:IsA('Model') then
- for i,x in pairs (v:GetChildren()) do
- if x:IsA('Part') or x:IsA('UnionOperation') then
- local l = Instance.new('BoxHandleAdornment', esphandler)
- l.Name = 'Box'
- l.AlwaysOnTop = true
- l.Adornee = x
- l.Transparency = .5
- l.Color3 = Color3.new(0, 0.6666, 0)
- l.Size = x.Size
- l.ZIndex = 10
- local q = Instance.new('StringValue', l)
- q.Name = 'Par'
- q.Value = x.Parent.Name
- end
- end
- end
- end
- else
- createSpecial('no boxes found', '')
- end
- else
- if not game.Workspace.SafeSpots:FindFirstChildWhichIsA('Model') then
- createSpecial('no boxes found', '')
- else
- createText('esp activated', false)
- end
- for i,v in pairs (esphandler:GetChildren()) do
- if v.Name == 'Box' then
- v:Destroy()
- end
- end
- end
- boxesp = not boxesp
- elseif t == 'esp/cams' then
- if camesp == false then
- for i,v in pairs (game.Workspace.Cameras:GetChildren()) do
- for i,x in pairs (v:GetChildren()) do
- if x:IsA('Part') or x:IsA('UnionOperation') then
- local l = Instance.new('BoxHandleAdornment', esphandler)
- l.Name = 'Cams'
- l.AlwaysOnTop = true
- l.Adornee = x
- l.Transparency = .5
- l.Color3 = Color3.new(0.6666, 0.6666, 0)
- l.Size = x.Size
- l.ZIndex = 10
- local q = Instance.new('StringValue', l)
- q.Name = 'Par'
- q.Value = x.Parent.Name
- end
- end
- end
- else
- for i,v in pairs (esphandler:GetChildren()) do
- if v.Name == 'Cams' then
- v:Destroy()
- end
- end
- end
- createText('camera esp activated', not camesp)
- camesp = not camesp
- elseif t == 'esp/card' then
- if cardesp == false then
- if game.Workspace.Map:FindFirstChild('KeyCard') or game.Workspace.Map:FindFirstChild('DowntownKey') then
- for i,v in pairs (game.Workspace.Map:GetChildren()) do
- if v.Name == 'KeyCard' or v.Name == 'DowntownKey' then
- for i,x in pairs (v:GetChildren()) do
- if x:IsA('Part') or x:IsA('UnionOperation') then
- local l = Instance.new('BoxHandleAdornment', esphandler)
- l.Name = 'Card'
- l.AlwaysOnTop = true
- l.Adornee = x
- l.Transparency = .5
- l.Color3 = Color3.new(1, 0, 1)
- l.Size = x.Size
- l.ZIndex = 10
- local q = Instance.new('StringValue', l)
- q.Name = 'Par'
- q.Value = x.Parent.Name
- end
- end
- end
- end
- else
- if findmanager() ~= 'Citizen' then
- createSpecial('no cards or keys found', '')
- else
- createSpecial('no cards or keys found', 'Manager found, may have card')
- end
- end
- else
- for i,v in pairs (esphandler:GetChildren()) do
- if v.Name == 'Card' then
- v:Destroy()
- end
- end
- end
- elseif t == 'esp/manager' then
- if manageresp == false then
- if findmanager() == 'Citizen' then
- manageresp = true
- createText('manager esp activated', manageresp)
- for i,v in pairs (findmanagerObject():GetChildren()) do
- if v:IsA('Part') or v:IsA('UnionOperation') then
- local l = Instance.new('BoxHandleAdornment', esphandler)
- l.Name = 'Manage'
- l.AlwaysOnTop = true
- l.Adornee = v
- l.Transparency = .5
- l.Color3 = Color3.new(0.6666, 0, 0)
- l.Size = v.Size
- l.ZIndex = 10
- local q = Instance.new('StringValue', l)
- q.Name = 'Par'
- q.Value = v.Parent.Name
- end
- end
- else
- createSpecial('no managers found', '')
- end
- else
- manageresp = false
- if findmanager() == 'Citizen' then
- createText('manager esp activated', false)
- else
- createSpecial('manager not found', '')
- end
- for i,v in pairs (esphandler:GetChildren()) do
- if v.Name == 'Manage' then
- v:Destroy()
- end
- end
- end
- else
- createSpecial('\''..t..'\' is not one of the esp commands')
- cardesp = not cardesp
- end
- elseif t == 'loopcams' then
- if camloop == false then
- if game.Workspace.Cameras:FindFirstChild('Camera') or game.Workspace.Cameras:FindFirstChild('DeathwishCamera') then
- camloop = true
- createText('looping all cameras', 'process repeats, type command again to stop loop')
- spawn(function()
- repeat
- for i,v in pairs (game.Workspace.Cameras:GetChildren()) do
- wait()
- if v.Name == 'Camera' or v.Name == 'DeathwishCamera' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- end
- until camloop == false
- end)
- else
- createSpecial('all cameras broken', '')
- end
- else
- createText('camera loop stopped', '')
- camloop = false
- end
- elseif t == 'body' then
- if game.Workspace.Bodies:FindFirstChild('DeadBody') then
- spawn(function()
- createText('bagging started', '')
- repeat
- for i,v in pairs (game.Workspace.Bodies:GetChildren()) do
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- wait()
- until not game.Workspace.Bodies:FindFirstChild('DeadBody')
- createText('bodies bagged', '')
- end)
- else
- createSpecial('no bodies found', '')
- end
- elseif string.sub(t, 1,5) == 'grab/' and t ~= 'grab/' then
- if t == 'grab/body' then
- if game.Workspace.Bags:FindFirstChild('BodyBag') then
- spawn(function()
- repeat
- for i,v in pairs (game.Workspace.Bags:GetChildren()) do
- if v.Name == 'BodyBag' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- end
- wait()
- until not game.Workspace.Bags:FindFirstChild('BodyBag')
- createText('body bags grabbed', '')
- end)
- else
- createSpecial('no body bags found', '')
- end
- elseif t == 'grab/loot' then
- if game.Workspace.Bags:FindFirstChild('Bag') then
- spawn(function()
- repeat
- for i,v in pairs (game.Workspace.Bags:GetChildren()) do
- if v.Name == 'Bag' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- end
- wait(2)
- until not game.Workspace.Bags:FindFirstChild('Bag')
- createText('loot bags grabbed', '')
- end)
- end
- elseif t == 'grab/drill' then
- if game.Workspace.Map:FindFirstChild('Thermal Drill Bag') then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(game.Workspace.Map:FindFirstChild('Thermal Drill Bag'))
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(game.Workspace.Map:FindFirstChild('Thermal Drill Bag'))
- createText('drill bag grabbed', '')
- else
- createSpecial('drill bag not found', '')
- end
- else
- createSpecial('\''..t..'\' is not one of the grab commands', '')
- end
- elseif t == 'fix' then
- if game.Workspace.Map:FindFirstChild('DrillingDoor') then
- if game.Workspace.Map.DrillingDoor:FindFirstChild('BrokenDrill') then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(game.Workspace.Map.DrillingDoor:FindFirstChild('BrokenDrill'))
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(game.Workspace.Map.DrillingDoor:FindFirstChild('BrokenDrill'))
- createText('drill fixed', '')
- else
- createSpecial('drill is not broken', '')
- end
- else
- createSpecial('drilling not started', '')
- end
- elseif t == 'apply' then
- if game.Workspace.Map:FindFirstChild('ApplyDrill') then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(game.Workspace.Map:FindFirstChild('ApplyDrill'))
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(game.Workspace.Map:FindFirstChild('ApplyDrill'))
- createText('drill applied', '')
- else
- createText('drill not applicable', '')
- end
- elseif t == 'breach' then
- breach = not breach
- if breach == true then
- createText('breach activated', 'true, press z to breach objects, and m to restore them')
- else
- createText('breach activated', 'false, you can no longer breach, but may still press m to restore objects')
- end
- elseif t == 'startdrill' then
- if game.Workspace.Map:FindFirstChild('VaultDoor') then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(game.Workspace.Map:FindFirstChild('VaultDoor'))
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(game.Workspace.Map:FindFirstChild('VaultDoor'))
- createText('drill started', '')
- else
- createSpecial('not able to apply drill', '')
- end
- elseif t == 'planks' then
- if game.Workspace:FindFirstChild('NonPoliceObjectives') then
- if game.Workspace.NonPoliceObjectives:FindFirstChild('PlaceableBoards') then
- for i,v in pairs (game.Workspace.NonPoliceObjectives:GetChildren()) do
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer(v)
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer(v)
- end
- createText('boards placed', '')
- else
- createSpecial('you have no boards', '')
- end
- else
- createSpecial('unable to find correct folder', '')
- end
- elseif t == 'objective' then
- if game.Players.LocalPlayer.PlayerGui.MainGui.Objective.Framer.Frame.TextLabel.Text ~= '' then
- if string.sub(game.Players.LocalPlayer.PlayerGui.MainGui.Objective.Framer.Frame.TextLabel.Text, 1, 20) == 'OBJECTIVE REMINDER: ' then
- createText(string.sub(game.Players.LocalPlayer.PlayerGui.MainGui.Objective.Framer.Frame.TextLabel.Text, 20), '')
- else
- createText(game.Players.LocalPlayer.PlayerGui.MainGui.Objective.Framer.Frame.TextLabel.Text, '')
- end
- else
- createText('none', 'wait for an objective')
- end
- elseif t == 'tie' then
- if game.Workspace.Citizens:FindFirstChild('CitizenScared') then
- createText('citizen tie started', '')
- spawn(function()
- repeat
- for i,v in pairs (game.Workspace.Citizens:GetChildren()) do
- if v.Name == 'CitizenScared' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer({v})
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer({v})
- elseif v.Name == 'CitizenHostage' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer({v})
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer({v})
- elseif v.Name == 'CitizenTied' then
- game.ReplicatedStorage.Remotes.StartInteraction:FireServer({v})
- game.ReplicatedStorage.Remotes.CompleteInteraction:FireServer({v})
- end
- end
- wait()
- until game.Workspace.Citizens:FindFirstChild('CitizenTied') and not game.Workspace.Citizens:FindFirstChild('Citizen')
- createText('citizens tied', '')
- end)
- else
- createSpecial('citizens are not scared')
- end
- else
- createText('command \''..t..'\' not found', '')
- -- END COMMANDS
- end
- box.Text = 'Enter command (press \'t\' to focus )'
- end
- end)
- -- Repeats
- spawn(function()
- while true do
- for i,v in pairs (esphandler:GetChildren()) do
- if v.Adornee.Parent.Name == v.Par.Value then
- else
- v:Destroy()
- end
- end
- wait()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement