--Getfenv used the make normal variables into a global variable myVariable = "Hello, environments" -- Note: a global variable (non-local) local env = getfenv() print(env["myVariable"]) --> Hello, environments