Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
3

what is _ENV in lua? and how can it be used? [closed]

Asked by 4 years ago

Hi, so i've been tinkling around with all that lua has to offer, and i've learned a lot.... but I just don't I understand _ENV, all the explainations of it don't really make much sense to me..

i've glimpsed on some text that says, 'it stores global variables.' but when i do

print(_ENV)

it prints nil

which left me to conclude that, if it's nil then it must not be a part of the language, but i don't have 100% faith in my conclution, so I came here..

Thank you!

1
this is what i found The_Pr0fessor 595 — 4y
0
i still dont get it User#23252 26 — 4y

Closed as off-topic by User#24403

This question has been closed by our community as being off-topic from ROBLOX Lua Scripting.

Why was this question closed?