Advertisement
yougotoof

Untitled

Dec 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. wait(1)
  2. enabled = true
  3. local tool = Instance.new("HopperBin")
  4. tool.Parent = game.Players.fred7822.Backpack
  5. tool.Name = "Click To Kill!"
  6. function onButton1Down(mouse)
  7. local part = mouse.Target
  8. if part == nil or enabled == false then return end
  9. local char = part.Parent
  10. if char:findFirstChild("Humanoid") == nil or char:findFirstChild("Head") == nil then return end
  11. enabled = false
  12. local c = char:getChildren()
  13. char.Humanoid.Health = 0
  14. enabled = true
  15. end
  16.  
  17.  
  18. function onSelected(mouse)
  19. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  20. end
  21.  
  22. tool.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement