Skip to main content
Returns the environment table stored on a Luau thread. getstateenv is an alias.

Syntax

Aliases

  • getstateenv

Arguments

Returns

Example

Read the environment table stored on a Luau thread.