Advertisement
Guest User

Untitled

a guest
Oct 5th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local btool = Instance.new("Tool",game.Players.LocalPlayer.Backpack)
  2.   local SelectionBox = Instance.new("SelectionBox",game.Workspace)
  3.   SelectionBox.Name = "oof"
  4.   SelectionBox.LineThickness = 0.05
  5.   SelectionBox.Adornee = nil
  6.   SelectionBox.Color3 = Color3.fromRGB(0,0,255)
  7.   SelectionBox.Visible = false
  8.   btool.Name = "Delete Tool"
  9.   btool.RequiresHandle = false
  10.   local IsEquipped = false
  11.   local Mouse = game.Players.LocalPlayer:GetMouse()
  12.  
  13.   btool.Equipped:connect(function()
  14.    IsEquipped = true
  15.    SelectionBox.Visible = true
  16.    SelectionBox.Adornee = nil
  17.   end)
  18.  
  19.   btool.Unequipped:connect(function()
  20.    IsEquipped = false
  21.    SelectionBox.Visible = false
  22.    SelectionBox.Adornee = nil
  23.   end)
  24.  
  25.  
  26.   btool.Activated:connect(function()
  27.   if IsEquipped then
  28.    game.Workspace.resources.RemoteEvent:FireServer("toggleShield", Mouse.Target)
  29.    end
  30.   end)
  31.  
  32.   while true do
  33.    SelectionBox.Adornee = Mouse.Target or nil
  34.    wait(0.1)
  35.   end
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  ------:Arrest All:
  45. local A_1 = "requestTeam"
  46. local A_2 = "prisoners"
  47. local Event = game:GetService("Workspace").resources.RemoteFunction
  48. Event:InvokeServer(A_1, A_2)
  49. for _, v in pairs(game.Players:GetChildren()) do
  50. game.Workspace.resources.RemoteEvent:FireServer("cuff", v)
  51. end
  52. wait(2)
  53. game.Workspace.resources.RemoteFunction:InvokeServer("requestTeam", "police")
  54. for _, v in pairs(game.Players:GetChildren()) do
  55. game.Workspace.resources.RemoteEvent:FireServer("cuff", v)
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement