Advertisement
scld

카운터블록스 올킬 off

Oct 11th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. getgenv().TeamCheck = true -- true/false
  2. getgenv().KillAll = true -- true/false
  3.  
  4. local mt = getrawmetatable(game)
  5. setreadonly(mt, false)
  6. local nc = mt.__namecall
  7.  
  8. mt.__namecall = newcclosure(function(self, ...)
  9. local Method = getnamecallmethod()
  10. local Args = {...}
  11.  
  12. if Method == 'FireServer' and self.Name == 'HitPart' and KillAll then
  13.  
  14. for i,v in next, game.Players.GetPlayers(game.Players) do
  15. if v ~= game.Players.LocalPlayer and ((TeamCheck and v.Team ~= game.Players.LocalPlayer.Team) or (not TeamCheck and true)) then
  16. if v.Character.FindFirstChild(v.Character, 'Head') and v.Character.FindFirstChild(v.Character, 'Humanoid') and v.Character.Humanoid.Health ~= 0 then
  17. local Player = v
  18.  
  19. Args[1] = Player.Character.Head
  20. Args[2] = Player.Character.Head.Position
  21.  
  22. for i = 1, 3 do
  23. nc(self, unpack(Args))
  24. end
  25. end
  26. end
  27. end
  28. end
  29.  
  30. return nc(self, ...)
  31. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement