M4DH4X

Untitled

Jan 21st, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1.  
  2. -- // Services
  3. local Players = game:GetService("Players")
  4. local Workspace = game:GetService("Workspace")
  5. local StarterGui = game:GetService("StarterGui")
  6.  
  7. -- // Vars
  8. local LocalPlayer = Players.LocalPlayer
  9. local CurrentCamera = Workspace.CurrentCamera
  10. getgenv().DaHoodAntiCheat = {
  11. WalkSpeed = 50,
  12. JumpPower = 100
  13. }
  14. local detectionVectors = {
  15. CHECKER_1 = true,
  16. TeleportDetect = true,
  17. OneMoreTime = true
  18. }
  19.  
  20. -- // Metatable vars
  21. local mt = getrawmetatable(game)
  22. local backupnamecall = mt.__namecall
  23. local backupnewindex = mt.__newindex
  24. setreadonly(mt, false)
  25.  
  26. -- // Hook
  27. mt.__namecall = newcclosure(function(...)
  28. -- // Vars
  29. local method = getnamecallmethod()
  30. local args = {...}
  31.  
  32. -- // Check if it trying to do naughty
  33. if (method == "FireServer" and tostring(args[1]) == "MainEvent" and detectionVectors[args[2]]) then
  34. return wait(9e9)
  35. end
  36.  
  37. -- // Fly Bypass
  38. if (not checkcaller() and getfenv(1).crash ~= nil and getfenv(1).checkChild ~= nil) then
  39. return wait(9e9)
  40. end
  41.  
  42. -- // Return
  43. return backupnamecall(...)
  44. end)
  45.  
  46. mt.__newindex = newcclosure(function(t, k, v)
  47. if (not checkcaller() and k == "WalkSpeed" or k == "JumpPower" and getcallingscript().Name == "Framework") then
  48. return nil
  49. end
  50.  
  51. return backupnewindex(t, k, v)
  52. end)
  53.  
  54. -- // End Metatable
  55. setreadonly(mt, true)
  56.  
  57.  
  58. -- // Walkspeed Bypass
  59. function bypassWalkSpeed()
  60. local gGC = getgc()
  61. for i = 1, #gGC do
  62. local v = gGC[i]
  63.  
  64. if (debug.getinfo(v).name == "checkingSPEED") then
  65. hookfunction(v, function() return end)
  66. end
  67. end
  68. end
  69. bypassWalkSpeed()
  70. LocalPlayer.CharacterAdded:Connect(function()
  71. LocalPlayer.Character:WaitForChild("Animate")
  72. bypassWalkSpeed()
  73. end)
  74.  
  75. print("Anti Cheat Bypass Loaded!")
  76.  
  77. -- // Anti Ban + Godmode
  78. do
  79. LocalPlayer.Character.Humanoid.Health = 0
  80.  
  81. local nCharacter = LocalPlayer.CharacterAdded:Wait()
  82.  
  83. local spoofFolder = Instance.new("Folder", nCharacter)
  84. spoofFolder.Name = "FULLY_LOADED_CHAR"
  85.  
  86. local Target = nCharacter:WaitForChild("RagdollConstraints")
  87. local Clone = Target:Clone()
  88. Clone.Parent = nCharacter
  89. Target:Destroy()
  90. end
  91.  
  92. -- // Makes it persist
  93. LocalPlayer.Character.Humanoid.HealthChanged:Connect(function(health)
  94. if (health <= 0) then
  95. wait(0.1)
  96.  
  97. local tool = LocalPlayer.Character:FindFirstChildWhichIsA("Tool")
  98.  
  99. if (tool) then
  100. local toolName = tool.Name
  101. LocalPlayer.Character.Humanoid:UnequipTools()
  102. LocalPlayer.Backpack[toolName]:EquipTool()
  103. end
  104.  
  105. wait(0.5)
  106.  
  107. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
  108. end
  109. end)
  110.  
  111. -- // Hook
  112. mt.__newindex = newcclosure(function(t, k, v)
  113. -- // Check if it is trying to set the camera subject, then if it is, stop it
  114. if (not checkcaller() and t == CurrentCamera and k == "CameraSubject" and v == LocalPlayer.Character.UpperTorso) then
  115. return nil
  116. end
  117.  
  118. return backupnewindex(t, k, v)
  119. end)
Advertisement
Add Comment
Please, Sign In to add comment