Aliases
getmoduleenv
Arguments
ModuleScript
required
The ModuleScript to inspect.
Returns
table?
The returned module value’s environment, 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.
Calls require on the module, then requests the returned value’s environment.
getmenv(module: ModuleScript): table?
getmoduleenvlocal module = Instance.new("ModuleScript")
local env = getmenv(module)
print(env)
module:Destroy()
