Advertisement
denissini

Untitled

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