of     1   

Shalaen
#182373774Monday, January 25, 2016 8:34 AM GMT

What are these? How are they used? What are they useful for? I was mucking around with F3X's source and saw this.
chimmihc
#182374176Monday, January 25, 2016 8:54 AM GMT

fenv means function environment. setfenv is used to set function environments, getfenv is used for getting function environments.
Shalaen
#182374267Monday, January 25, 2016 8:59 AM GMT

Environment as in, global or local?
chimmihc
#182374324Monday, January 25, 2016 9:03 AM GMT

It's not as simple as that. http://www.lua.org/manual/5.1/manual.html#2.9
cntkillme
#182383779Monday, January 25, 2016 3:47 PM GMT

A function environment are the global variables a function has. By default (when you don't set it) all function environments inherit from the top-level function's environment (environments are inherited from enclosing functions) which is the global environment. (getfenv(0)) docs.google dot com/document/d/1A1SBjRqFKFxaw7_RnsI96CKzBCcAOkuDPOTG8DIZywA
Randcomo28
#182388492Monday, January 25, 2016 5:45 PM GMT

Is there an easier example?
DeepBlueNoSpace
#182388550Monday, January 25, 2016 5:47 PM GMT

I litterally searched setfenv roblox... http://forum.roblox.com/Forum/ShowPost.aspx?PostID=43904517

    of     1