Advertisement
denissini

Untitled

Jun 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. wait(0,05)
  2. local Player = game.Players.LocalPlayer
  3. local AnimationOfDead = 887944152
  4.  
  5. local Mouse = Player:GetMouse()
  6. local KillKey = "k"
  7. local StopKey = "i"
  8.  
  9. Mouse.KeyDown:connect(function(Key)
  10. if Key == StopKey then
  11. print("key i")
  12. for i, v in pairs(game.Players:GetChildren()) do
  13. if v.ClassName == "Player" and v.Name ~= Player.Name then
  14. local char = v.Character
  15. if char then
  16. print"char"
  17. local Human = v.Character:FindFirstChildOfClass("Humanoid")
  18. if Human then
  19. Human.Parent.Head.Anchored = true
  20. wait(5)
  21. Human.Parent.Head:remove()
  22. end
  23. end
  24. end
  25. end
  26. end
  27. if Key == KillKey then
  28. print("key K")
  29. for i, v in pairs(game.Players:GetChildren()) do
  30. if v.ClassName == "Player" and v.Name ~= Player.Name then
  31. local char = v.Character
  32. if char then
  33. print"char"
  34. local Human = v.Character:FindFirstChildOfClass("Humanoid")
  35. if Human then
  36. Human.MaxHealth = 20
  37. local Health = Human.Health
  38. while Health ~= 0 do
  39. Human.Health = Human.Health - 1
  40. Health = Human.Health
  41. wait(0,5)
  42. end
  43. end
  44. end
  45. end
  46. end
  47. end
  48. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement