Advertisement
SigmaBoy456

Hookmetamethod Example #3461

Sep 5th, 2024 (edited)
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. -- hookmetamethod
  2. local hook = hookmetamethod(game, "__namecall", function(self, ...)
  3. local method = getnamecallmethod()
  4. if not checkcaller() and method:lower() == "kick" then
  5. print("Game attempt to kick bypassed by Hookmetamethod")
  6. return nil
  7. end
  8. return hook(self, ...)
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement