Upscalefanatic3

(Roblox) Lost Kick Bypass

Mar 30th, 2020
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. local getnamecallmethod = getnamecallmethod
  2. local setreadonly = setreadonly
  3. local getcallingscript = getcallingscript
  4. if PROTOSMASHER_LOADED then
  5. getnamecallmethod = get_namecall_method
  6. setreadonly = function(table, state)
  7. if state then
  8. make_writeable(table)
  9. else
  10. make_readonly(table)
  11. end
  12. end
  13. getcallingscript = get_calling_script
  14. end
  15. if not getnamecallmethod or not setreadonly or not getrawmetatable then
  16. warn("exploit doesn't have needed functions")
  17. return
  18. end
  19.  
  20. local mt = getrawmetatable(game)
  21. local old_call = mt.__namecall
  22. setreadonly(mt, false)
  23. mt.__namecall = function(...)
  24. local args = {...}
  25. local method = getnamecallmethod() --gets the method
  26. if method == "Kick" then --check the method
  27. warn("kick called from:,", getcallingscript():GetFullName())
  28. return --returns so the kick doesn't do anything
  29. end
  30. if method == "FireServer" then --check the method
  31. if args[1].Name == "Alert" or args[1].Name == "alerthrs" then --check the name of the remote
  32. warn("kick remote called from:,", getcallingscript():GetFullName())
  33. return --returns when the alert remote is called, no kick caused on the server
  34. end
  35. end
  36. return old_call(unpack(args)) --return old data
  37. end
Add Comment
Please, Sign In to add comment