Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Any possible way to get local variables from an environment?

Asked by 4 years ago

While attempting to make some sort of anti-hack stuff, I wanted to get all global variables from getfenv(2) (the caller) to find a key to inorder to actually call the function. The only ways I'm aware of are possible are debug.getupvalue and debug.getlocals, but they don't exists in Roblox's sandboxed lua.

Answer this question