SHARE
TWEET

Untitled

a guest Dec 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getfenv = getfenv or function(f)
  2.     f = (type(f) == 'function' and f or debug.getinfo(f + 1, 'f').func)
  3.     local name, val
  4.     local up = 0
  5.     repeat
  6.         up = up + 1
  7.         name, val = debug.getupvalue(f, up)
  8.     until name == '_ENV' or name == nil
  9.     return val
  10. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top