JagTiger

Anomic: New Anti Cheat Bypass

Apr 21st, 2023
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. local replicatedStorage = game:GetService("ReplicatedStorage")
  2. local players = game:GetService("Players")
  3. local plr = players.LocalPlayer
  4. local char = plr.Character or plr.CharacterAdded:Wait()
  5.  
  6.  
  7. if not getgenv().BypassedAntiCheat then
  8. getgenv().BypassedAntiCheat = true
  9. do
  10.  
  11. local oldIndex -- spoofing shit
  12. oldIndex = hookmetamethod(game, "__index", newcclosure(function(self, property)
  13. if not checkcaller() then
  14. --print(self, property)
  15. if
  16. rawequal(oldIndex(self, "ClassName"), "Humanoid") -- i wont return on a non Humanoid
  17. and rawequal(oldIndex(self, "Parent"), plr.Character) -- Parent
  18. then
  19. if rawequal(property, "WalkSpeed") then
  20. return 13
  21. elseif rawequal(property, "JumpPower") then
  22. return 30
  23. elseif rawequal(property, "JumpHeight") then
  24. return 3.612
  25. elseif rawequal(property, "PlatformStand") then -- in case
  26. return false
  27. end
  28. end
  29. end
  30. return oldIndex(self, property)
  31. end))
  32.  
  33.  
  34. local hookNamecall
  35. hookNamecall = hookmetamethod(game, "__namecall", newcclosure(function(...)
  36. if not checkcaller() then
  37. local func = getnamecallmethod()
  38. local stuffs = {...}
  39. local the1 = stuffs[1]
  40. local the2 = stuffs[2]
  41. if oldIndex(plr, "Character") then
  42. if
  43. rawequal(func, "SetPrimaryPartCFrame")
  44. and rawequal(typeof({...}), "table")
  45. and not rawequal(the1, nil)
  46. and not rawequal(the2, nil)
  47. and rawequal(typeof(the1), "Instance")
  48. and rawequal(typeof(the2), "CFrame")
  49. and rawequal(the1, oldIndex(plr, "Character"))
  50. and rawequal(the1.Name, oldIndex(plr, "Name"))
  51. then
  52. return CFrame.new(0,0,0) -- anti rollback
  53. end
  54.  
  55. end
  56. if
  57. rawequal(func, "FindPartOnRayWithWhitelist")
  58. and tostring(getcallingscript()) == "GunHandlerLocal"
  59. then
  60. --warn(...)
  61. return wait(9e9) -- disable the anticheat for his main part
  62. end
  63.  
  64.  
  65. end
  66. return hookNamecall(...)
  67. end))
  68. local oldInst
  69. oldInst = hookfunction(getrenv().Instance.new, newcclosure(function(...)
  70. local args = {...}
  71.  
  72. local callscript = getcallingscript()
  73.  
  74. if
  75. (not checkcaller()) and callscript:IsDescendantOf(LP) -- wtf is LP??? -- that part was from a friend :p
  76. and callscript.Name ~= "RbxCharacterSounds" and callscript.Name ~= "ChatMain"
  77. then
  78. return nil -- the game create a shit tons of part to make ur game lag/crash (idk why)
  79. end
  80.  
  81. return oldInst(...)
  82. end))
  83.  
  84. local toBypass = {
  85. getconnections(game:GetService("ScriptContext").Error), -- Script Error
  86. getconnections(replicatedStorage["_CS.Events"].ToolEvent.OnClientEvent), -- disable future event
  87. getconnections(workspace:GetPropertyChangedSignal("Gravity")), -- Gravity
  88. getconnections(char.DescendantAdded), -- PRIMARY
  89.  
  90. }
  91. local function BypassConnections()
  92. for _, v in pairs(toBypass) do
  93. for _,v in pairs(v) do
  94. v:Disable()
  95. end
  96. end
  97. end
  98. plr.CharacterAdded:Connect(BypassConnections)
  99. BypassConnections() -- load it
  100.  
  101. end
  102. end
Add Comment
Please, Sign In to add comment