Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local is_synapse_function = is_synapse_function or isourclosure or isexecutorclosure or islclosure or issentinelclosure or is_protosmasher_closure or game.Players.LocalPlayer:Kick("unsupported executor")
- local coomerFunction
- for i,v in next, getgc() do
- if typeof(v)=="function" and is_synapse_function(v) then
- if table.find(getconstants(v),"PreloadAsync") then
- coomerFunction = getinfo(v).source
- end
- end
- end
- local debuginfo = getinfo
- local OldNameCall
- OldNameCall = hookmetamethod(game, "__namecall", function(...)
- local Args={...}
- local Self = Args[1]
- if not checkcaller() then
- if string.find(debuginfo(3).source,coomerFunction) then
- wait(9e9)
- return
- end
- end
- return OldNameCall(...)
- end)
- local OldNameCall
- OldNameCall = hookmetamethod(game, "__index", function(...)
- local Args={...}
- local Self = Args[1]
- if not checkcaller() then
- if debuginfo(3).source:find(coomerFunction) then
- wait(9e9)
- return game
- end
- end
- return OldNameCall(...)
- end)
- local OldNameCall
- OldNameCall = hookmetamethod(game, "__newindex", function(...)
- local Args={...}
- local Self = Args[1]
- if not checkcaller() then
- if string.find(debuginfo(3).source,coomerFunction) then
- wait(9e9)
- return
- end
- end
- return OldNameCall(...)
- end)
Advertisement
Add Comment
Please, Sign In to add comment