Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- env = {fs = {...}}
- setmetatable(env, {__index = _G})
- --# For every function
- env[name] = function(...)
- _ENV = env
- --# Keep in mind that anything that isn't local or global (i.e. something in the previous _ENV) cannot be accessed beyond this point
- return func(...)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement