Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns the environment table stored on a Luau thread. getstateenv is an alias.
gettenv(thread: thread): table
getstateenv
thread
environment
table
local thread = coroutine.create(function() end) local env = gettenv(thread) print(type(env)) local aliasEnv = getstateenv(thread) print(type(aliasEnv))