Advertisement
Marko97

AntiKick

Aug 21st, 2020
2,287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local MetaTable = getrawmetatable(game)
  2. local NameCall = MetaTable.__namecall
  3. local NewCClosure = newcclosure or protect_function
  4.  
  5. if not NewCClosure then
  6.     NewCClosure = function(f) return f end
  7.     return
  8. end
  9.  
  10. setreadonly(MetaTable, false)
  11. MetaTable.__namecall = NewCClosure(function(self, ...)
  12. local Method = getnamecallmethod()
  13.     if Method == "Kick" then
  14.         wait(9e9)
  15.         return
  16.     end
  17.    
  18.     return NameCall(self, ...)
  19. end)
  20.    
  21. hookfunction(game:GetService("Players").LocalPlayer.Kick, NewCClosure(function() wait(9e9) end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement