Advertisement
Idirina

Kill (PLAYER)

Nov 22nd, 2017
2,297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character
  3. local mouse = player:GetMouse()
  4.  
  5. local kill = "020_Millie"
  6. local stopkill = false
  7.  
  8. mouse.KeyDown:connect(function(key)
  9. key = key:lower()
  10. if key == "m" then
  11. print("pressed M")
  12. stopkill = true
  13. elseif key == "n" then
  14. stopkill = false
  15. end
  16. end)
  17.  
  18. while true do
  19. if (stopkill == false) or (game.Players:FindFirstChild(kill)) then
  20. repeat
  21. wait()
  22. if game.Workspace:FindFirstChild(kill) then
  23. game.Workspace:FindFirstChild(kill):Destroy()
  24. end
  25. until (game.Players:FindFirstChild(kill) == nil) or (stopkill == true)
  26. end
  27. wait()
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement