Advertisement
DrawingJhon

Part Killer

Jun 2nd, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. for i, plr in pairs(Players:GetChildren()) do
  3. plr.Chatted:connect(function(msg)
  4. if msg == "get/partkill" or msg == "g/pk" or msg == "get/pk" or msg == "g/partkill" then
  5. local h = plr.Character:findFirstChild("Humanoid")
  6. if h ~= nil then
  7. h.Health = 99999999999999999999999999
  8. wait()
  9. local p = Instance.new("Part", workspace)
  10. p.Position = plr.Character:findFirstChild("Head").Position
  11. p.TopSurface = Enum.SurfaceType.Smooth
  12. p.BottomSurface = Enum.SurfaceType.Smooth
  13. p.Anchored = true
  14. p.Touched:connect(function(hit)
  15. local hm = hit.Parent:findFirstChild("Humanoid")
  16. if hm ~= nil then
  17. hm.Health = hm.Health - 100
  18. end
  19. end)
  20. end
  21. end
  22. end)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement