The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
City Life COMPLETE ALL TASKS – FOR POLICE script pastebin roblox
By City Life COMPLETE ALL TASKS – FOR POLICE on 2024-09-21 08:00 am | Syntax: LUA | Views: 9



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. local plr = game.Players.LocalPlayer
  2. local plrCh = plr.Character
  3.  
  4. local data1 = {
  5.    [1] = plrCh,
  6.    [2] = nil,
  7.    [3] = 1,
  8.    [4] = nil,
  9.    [5] = true
  10. }
  11.  
  12. local data2 = {
  13.    [1] = nil,
  14.    [2] = 1
  15. }
  16.  
  17. function getMuzzle()
  18.  
  19.    for i ,v in pairs (game.Workspace:GetDescendants()) do
  20.      
  21.        if (v.Name == "Gun" and v:IsA("Tool")) then
  22.          
  23.            for i ,v in pairs (v:GetDescendants()) do
  24.              
  25.                if (v.Name == "muzzle") then
  26.                    
  27.                    print("Using player : " .. v.Parent.Parent.Parent.Name .. "'s gun muzzle.")
  28.                    return v
  29.                    
  30.                end
  31.              
  32.            end
  33.          
  34.        end
  35.      
  36.    end
  37.  
  38. end
  39.  
  40. function stopChases()
  41.  
  42.   spawn(function()
  43.    
  44.        for carChaseIndex, carChase in pairs (game.Workspace.jobInstances.police.carChaseNodes:GetChildren()) do
  45.        
  46.            for i , v in pairs (carChase:GetChildren()) do
  47.                if (v:IsA("Model")) then
  48.        
  49.                    print("Stopping Car : " .. v.Name)
  50.                    game:GetService("ReplicatedStorage").remoteInterface.jobs.action:InvokeServer(v.Parent)
  51.                  
  52.                end
  53.                
  54.            end
  55.        
  56.        end
  57.        
  58.    end)
  59.    
  60. end
  61.  
  62. function saveHostages()
  63.  
  64.   for instIndex, inst in pairs (game:GetDescendants()) do
  65.  
  66.       if (inst.Name == "hostageNode" and inst:IsA("Part")) then
  67.    
  68.           for i , v in pairs (inst:GetChildren()) do
  69.              
  70.              if (v:IsA("Model")) then
  71.                
  72.                spawn(function()
  73.                    
  74.                    print("Saving Hostage " .. v.Name)
  75.                    game:GetService("ReplicatedStorage").remoteInterface.jobs.action:InvokeServer(inst)
  76.                
  77.                end)  
  78.                  
  79.              end
  80.              
  81.           end
  82.    
  83.       end
  84.        
  85.    end
  86.    
  87. end
  88.  
  89. function killThugs()
  90.  
  91.    for objIndex, obj in pairs (game.Workspace:GetDescendants()) do
  92.  
  93.        if (obj.Name == "thugNode" and obj:IsA("Part")) then
  94.            
  95.            for i ,v in pairs (obj:GetChildren()) do
  96.                
  97.                if (v.Name == "thug") then
  98.                  
  99.                    data1[4] = v.Head.Position
  100.                    data2[1] = obj
  101.                  
  102.                    local attempts = 0
  103.                  
  104.                    repeat
  105.                        
  106.                        spawn(function()
  107.                        
  108.                            game:GetService("ReplicatedStorage").remoteInterface.tools.bulletShot:FireServer(unpack(data1))
  109.                            game:GetService("ReplicatedStorage").remoteInterface.jobs.action:InvokeServer(unpack(data2))
  110.                            
  111.                        end)
  112.                        
  113.                        
  114.                        print("Attacked " .. v.Name .. " x" .. attempts)
  115.                        attempts = attempts + 1
  116.                        
  117.                    until attempts == 25
  118.                    
  119.                end
  120.                
  121.            end
  122.            
  123.        end
  124.        
  125.    end
  126.    
  127. end
  128.  
  129. saveHostages()
  130. stopChases()
  131. killThugs()



  • Recent Roblox Scripts