Axolotleless

Axo's anticheat

Feb 9th, 2025
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.69 KB | None | 0 0
  1. wait(0)
  2. bin = Instance.new("HopperBin", nil)
  3. script.Parent = bin
  4.  
  5. local Player = game:GetService('Players').LocalPlayer
  6. local coreFunctions = {}
  7.  
  8. function coreFunctions.CoreLocked(object) -- RobloxLocked Parent
  9.     local active, status = pcall(function() object.Parent = object.Parent end)
  10.     if active then return false end
  11.     return true
  12. end
  13.  
  14. function coreFunctions.ServiceDescendant(object) -- First Parent
  15.     local services = {
  16.         game:GetService('Workspace'),
  17.         game:GetService('Players'),
  18.         game:GetService('Lighting'),
  19.         game:GetService('ReplicatedFirst'),
  20.         game:GetService('ReplicatedStorage'),
  21.         --game:GetService('StarterGui'),
  22.         game:GetService('StarterPack'),
  23.         game:GetService('StarterPlayer'),
  24.         game:GetService('SoundService'),
  25.         game:GetService('HttpService'),
  26.     }
  27.     pcall(function()
  28.         for i,v in pairs(services) do
  29.             if object:IsDescendantOf(v) then return false end
  30.         end
  31.     end)
  32.     return true
  33. end
  34.  
  35. function coreFunctions.ClientMember(object) -- ClassName Check
  36.     local classes = {
  37.         'Script',
  38.         'LocalScript',
  39.         'CoreScript',
  40.         'ModuleScript',
  41.         'ScreenGui',
  42.         'SurfaceGui',
  43.         'Frame',
  44.         'ScrollingFrame',
  45.         'ImageButton',
  46.         'ImageLabel',
  47.         'TextBox',
  48.         'TextButton',
  49.         'TextLabel',
  50.     }
  51.     local objectName = tostring(tick())
  52.     local active, status = pcall(function()
  53.         local objectTest = object[objectName]
  54.     end)
  55.     if status then
  56.         local errorClass = status:match(objectName.." is not a valid member of (.*)")
  57.         for i,v in pairs(classes) do
  58.             if errorClass == v then
  59.                 return true
  60.             end
  61.         end
  62.     end
  63.     return false
  64. end
  65.  
  66. function coreFunctions.IntegrityCheck(object) -- Valid Object Check
  67.     local objectName = tostring(tick())
  68.     local active, status = pcall(function()
  69.         game:GetService('GuiService'):AddSelectionParent(objectName, object)
  70.         game:GetService('GuiService'):RemoveSelectionGroup(objectName)
  71.     end)
  72.     if status and status:find(objectName) and status:find('GuiService') then return true end
  73.     wait()
  74.     for i,v in pairs(game:GetService('LogService'):GetLogHistory()) do
  75.         if v.message:find(objectName) and v.message:find('GuiService') then return true end
  76.     end
  77.     return false
  78. end
  79.  
  80. game.DescendantAdded:connect(function(object) -- DescendantAdded Object Check
  81.     if type(object) == 'userdata' and coreFunctions.CoreLocked(object) then
  82.         if coreFunctions.ServiceDescendant(object) then
  83.             if coreFunctions.ClientMember(object) then
  84.                 if coreFunctions.IntegrityCheck(object) then -- Confirmed H4X.
  85.                     Player:Kick() -- Reasonable.
  86.                 end
  87.             end
  88.         end
  89.     end
  90. end)
Add Comment
Please, Sign In to add comment