Is it possible to grab all the Roblox and Lua globals in the current environment as a table? Like math
, os
, game
, require
, etc.
My first thought was to use getfenv to do this, but:
print(getfenv())
Just prints a table with only a “script” key.
Any help would be appreciated.