getrenv

Accesses the associated host environment.

Syntax

Signature
getrenv() -> table

Aliases

This function has no aliases.

Parameters

This function takes no parameters.

Returns

TypeDescription
tableAssociated 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)