-
What do you want to achieve? I want to get the functions inside of a function, to then get the arguments inside of that function.
-
What is the issue? When I try getconstants, it returns a string which I cannot turn into the original function.
-
What solutions have you tried so far? I’ve searched the debug functions which I bet is my chance, but couldn’t find anything.
For Example:
function foo()
print("Hello")
wait(1)
print("World")
end
function bar(func)
-- "functions" is the functions inside of the function
return functions
end
for i, v in pairs(bar(foo)) do
print(i, v)
end
Result
1 function: 0x1278172912
2 function: 0x1279127319
3 function: 0x1236718267
I don’t think this is possible but I’ve seen someone do it so yeah.