Advertisement
roger109z

Untitled

Jul 25th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. env = {fs = {...}}
  2. setmetatable(env, {__index = _G})
  3.  
  4. --# For every function
  5. env[name] = function(...)
  6. _ENV = env
  7. --# Keep in mind that anything that isn't local or global (i.e. something in the previous _ENV) cannot be accessed beyond this point
  8. return func(...)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement