gray_alli28codesrbx

delete tool redwood

Sep 9th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. local btool = Instance.new("Tool",game.Players.LocalPlayer.Backpack)
  2. local SelectionBox = Instance.new("SelectionBox",game.Workspace)
  3. local hammer = Instance.new("Part")
  4. hammer.Parent = btool
  5. hammer.Name = ("Handle")
  6. hammer.CanCollide = false
  7. hammer.Anchored = false
  8.  
  9.  
  10. SelectionBox.Name = "oof"
  11. SelectionBox.LineThickness = 0.05
  12. SelectionBox.Adornee = nil
  13. SelectionBox.Color3 = Color3.fromRGB(0,0,255)
  14. SelectionBox.Visible = false
  15. btool.Name = "Delete Tool"
  16. btool.RequiresHandle = false
  17. local IsEquipped = false
  18. local Mouse = game.Players.LocalPlayer:GetMouse()
  19.  
  20. btool.Equipped:connect(function()
  21. IsEquipped = true
  22. SelectionBox.Visible = true
  23. SelectionBox.Adornee = nil
  24. end)
  25.  
  26. btool.Unequipped:connect(function()
  27. IsEquipped = false
  28. SelectionBox.Visible = false
  29. SelectionBox.Adornee = nil
  30. end)
  31.  
  32.  
  33. btool.Activated:connect(function()
  34. if IsEquipped then
  35. local ex = Instance.new'Explosion'
  36. ex.BlastRadius = 0
  37. ex.Position = Mouse.Target.Position
  38. ex.Parent = game.Workspace
  39. game.Workspace.resources.RemoteEvent:FireServer("toggleShield", Mouse.Target)
  40. wait(0.1)
  41. Mouse.Target.Transparency = 1
  42. end
  43. end)
  44.  
  45. while true do
  46. SelectionBox.Adornee = Mouse.Target or nil
  47. wait(0.1)
  48. end
Add Comment
Please, Sign In to add comment