getrenv
Accesses the associated host environment.
Syntax
Signature
getrenv() -> tableAliases
This function has no aliases.
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
table | Associated host global environment. |
Notes
Returns the host environment associated with the calling executor thread by the context manager. Changes affect that live environment table.
Example
Luau
local Result = getrenv()
print(Result)