Advertisement
Arcaneee

AntiCheat

Mar 31st, 2023 (edited)
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.10 KB | None | 0 0
  1. if game.PlaceId == 2788229376 then
  2. assert(getrawmetatable)
  3. gmt = getrawmetatable(game)
  4. setreadonly(gmt, false)
  5. old = gmt.__namecall
  6. gmt.__namecall =
  7.     newcclosure(
  8.         function(self, ...)
  9.         local args = {...}
  10.         if tostring(args[1]) == "BreathingHAMON" then
  11.             return
  12.         elseif tostring(args[1]) == "TeleportDetect" then
  13.             return
  14.         elseif tostring(args[1]) == "JJARC" then
  15.             return
  16.         elseif tostring(args[1]) == "TakePoisonDamage" then
  17.             return
  18.         elseif tostring(args[1]) == "CHECKER_1" then
  19.             return
  20.         elseif tostring(args[1]) == "CHECKER" then
  21.             return
  22.         elseif tostring(args[1]) == "GUI_CHECK" then
  23.             return
  24.         elseif tostring(args[1]) == "OneMoreTime" then
  25.             return
  26.         elseif tostring(args[1]) == "checkingSPEED" then
  27.             return
  28.         elseif tostring(args[1]) == "BANREMOTE" then
  29.             return
  30.         elseif tostring(args[1]) == "PERMAIDBAN" then
  31.             return
  32.         elseif tostring(args[1]) == "KICKREMOTE" then
  33.             return
  34.         elseif tostring(args[1]) == "BR_KICKPC" then
  35.             return
  36.         elseif tostring(args[1]) == "FORCEFIELD" then
  37.             return
  38.         elseif tostring(args[1]) == "Christmas_Sock" then
  39.             return
  40.         elseif tostring(args[1]) == "VirusCough" then
  41.             return
  42.         elseif tostring(args[1]) == "Symbiote" then
  43.             return
  44.         elseif tostring(args[1]) == "Symbioted" then
  45.             return
  46.          
  47.         end
  48.         return old(self, ...)
  49.     end)
  50. print("AntiCheat-Disabled")
  51. elseif game.PlaceId == 5602055394 then
  52.     for i,v in next, getgc(true) do
  53.     if typeof(v)=="table" and rawget(v,"DoThings") then
  54.         v.DoThings = function() end
  55.     end
  56. end
  57. print("AntiCheat-Disabled")
  58. elseif game.PlaceId == 9825515356 then
  59.     local _1;
  60. _1 = hookmetamethod(game, "__namecall", function(self, ...)
  61.     if not checkcaller() and getnamecallmethod() == "FireServer" then
  62.         if tostring(self.Name) == ".gg/untitledhood" then
  63.             local args = {...}
  64.             if tostring(args[1]) == "ForceDetect" or tostring(args[1]) == "TeleportDetect" or tostring(args[1]) == "GUI_CHECK" then
  65.                 return print("anticheat detected something sussy");
  66.             end
  67.         end
  68.     end
  69.  
  70.     return _1(self, ...);
  71. end)
  72. print("AntiCheat-Disabled")
  73. end
  74.  
  75.     local namecall
  76. namecall = hookmetamethod(game, "namecall", function(...)
  77.     -- // Vars
  78.     local args = {...}
  79.     local self = args[1]
  80.     local method = getnamecallmethod()
  81.     local caller = getcallingscript()
  82.  
  83.     -- // See if the game is trying to alert the server
  84.     if (method == "FireServer" and self == MainEvent and tablefind(Flags, args[2])) then
  85.         return
  86.     end
  87.  
  88.     -- // Anti Crash
  89.     if (not checkcaller() and getfenv(2).crash) then
  90.         -- // Hook the crash function to make it not work
  91.         hookfunction(getfenv(2).crash, function()
  92.             warn("Crash Attempt")
  93.         end)
  94.     end
  95.  
  96.     -- //
  97.     return namecall(...)
  98. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement