Let’s say that I have a script in ReplicatedFirst, and the script has the following code:
local s = function() end
print(debug.info(s, "s"))
This will print out the path to that LocalScript, as a string ReplicatedFirst.LocalScript
Is there any way that I could anonymize a function, and make debug.info(function, "s") return either nothing or not point to ReplicatedFirst? Thank you so much!
Heres a link to the documentation, it looks like there’s alternative string options that you can use instead of “s”, specifically l, f and n that may all return either nil or not point to replicated first
alternatively, you can just re-write the string that debug.info returns
local s = function() end
function adjust_Info(input_String)
if string.find(input_String,'ReplicatedFirst') then
local new_String = "I like turtles"
return new_String
end
adjust_Infod(debug.info(s,"s"))
This is not what I wanted. I wanted to anonymize the function and have debug.info(function, "s") return nothing or not point to ReplicatedFirst, not change the string that it returns within my script. This is to battle against the getgc() function of exploit executors, but I have already found a solution to my issue.