Advertisement
gray_alli28codesrbx

fixtool redwood

Sep 9th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 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 = "Fix"
  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. game.Workspace.resources.RemoteEvent:FireServer("toggleShield", Mouse.Target)
  36. Mouse.Target.Transparency = 0
  37. end
  38. end)
  39.  
  40. while true do
  41. SelectionBox.Adornee = Mouse.Target or nil
  42. wait(0.1)
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement