Aliases
getscriptenv
Arguments
LocalScript | ModuleScript | Script
required
The script Instance to inspect.
Returns
table?
The matching script thread’s globals, or nil when unavailable.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Finds a matching live thread and returns its globals.
getsenv(script: LocalScript | ModuleScript | Script): table?
getscriptenvfor _, script in ipairs(getrunningscripts()) do
local env = getsenv(script)
if env then print(script.Name, type(env)) break end
end
