Script_Master132

Untitled

Apr 25th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. ---Credits Hackmaster12
  2. local btool = Instance.new("Tool",game.Players.LocalPlayer.Backpack)
  3. local SelectionBox = Instance.new("SelectionBox",game.Workspace)
  4. SelectionBox.Name = "oof"
  5. SelectionBox.LineThickness = 0.05
  6. SelectionBox.Adornee = nil
  7. SelectionBox.Color3 = Color3.fromRGB(0,0,255)
  8. SelectionBox.Visible = false
  9. btool.Name = "Delete Tool"
  10. btool.RequiresHandle = false
  11. local IsEquipped = false
  12. local Mouse = game.Players.LocalPlayer:GetMouse()
  13.  
  14. btool.Equipped:connect(function()
  15. IsEquipped = true
  16. SelectionBox.Visible = true
  17. SelectionBox.Adornee = nil
  18. end)
  19.  
  20. btool.Unequipped:connect(function()
  21. IsEquipped = false
  22. SelectionBox.Visible = false
  23. SelectionBox.Adornee = nil
  24. end)
  25.  
  26.  
  27. btool.Activated:connect(function()
  28. if IsEquipped then
  29. game.Workspace.resources.RemoteEvent:FireServer("toggleShield", Mouse.Target)
  30. end
  31. end)
  32.  
  33. while true do
  34. SelectionBox.Adornee = Mouse.Target or nil
  35. wait(0.1)
  36. end
Add Comment
Please, Sign In to add comment