Advertisement
BlinkingStars

adonisdisabler.lua

Jun 6th, 2023
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | Gaming | 0 0
  1. local is_protosmasher_closure = is_protosmasher_closure or is_synapse_function
  2. local is_l_closure = is_l_closure or islclosure
  3. local get_gc_objects = get_gc_objects or getgc
  4.  
  5. local bruh = function(func)
  6.     for idx, cnst in next, debug.getconstants(func) do
  7.         debug.setconstant(func, idx, "____re___a__")
  8.     end
  9. end
  10.  
  11. for _, func in next, getgc() do
  12.     if typeof(func) == "function" and is_l_closure(func) and not is_protosmasher_closure(func) then
  13.         local script = getfenv(func).script
  14.         if script and script:GetFullName():lower():match("adonis") then
  15.             bruh(func)
  16.         end
  17.         for idx, cnst in next, debug.getconstants(func) do
  18.             local cnst = tostring(cnst):lower()
  19.             if cnst:match("adonis") or cnst:match("acli") then
  20.                 bruh(func)
  21.                 break
  22.             end
  23.         end
  24.     end
  25. end
Tags: lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement