kepobabi

unpatch cdid

Apr 1st, 2022
1,308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. local is_synapse_function = is_synapse_function or isourclosure or isexecutorclosure or islclosure or issentinelclosure or is_protosmasher_closure or game.Players.LocalPlayer:Kick("unsupported executor")
  2. local coomerFunction
  3. for i,v in next, getgc() do
  4. if typeof(v)=="function" and is_synapse_function(v) then
  5. if table.find(getconstants(v),"PreloadAsync") then
  6. coomerFunction = getinfo(v).source
  7. end
  8. end
  9. end
  10. local debuginfo = getinfo
  11. local OldNameCall
  12. OldNameCall = hookmetamethod(game, "__namecall", function(...)
  13. local Args={...}
  14. local Self = Args[1]
  15. if not checkcaller() then
  16. if string.find(debuginfo(3).source,coomerFunction) then
  17. wait(9e9)
  18. return
  19. end
  20. end
  21. return OldNameCall(...)
  22. end)
  23. local OldNameCall
  24. OldNameCall = hookmetamethod(game, "__index", function(...)
  25. local Args={...}
  26. local Self = Args[1]
  27. if not checkcaller() then
  28. if debuginfo(3).source:find(coomerFunction) then
  29. wait(9e9)
  30. return game
  31. end
  32. end
  33. return OldNameCall(...)
  34. end)
  35. local OldNameCall
  36. OldNameCall = hookmetamethod(game, "__newindex", function(...)
  37. local Args={...}
  38. local Self = Args[1]
  39. if not checkcaller() then
  40. if string.find(debuginfo(3).source,coomerFunction) then
  41. wait(9e9)
  42. return
  43. end
  44. end
  45. return OldNameCall(...)
  46. end)
Advertisement
Add Comment
Please, Sign In to add comment