getmodules
Lists ModuleScripts whether or not they have been required.
Syntax
getmodules() -> {ModuleScript}
Returns
| Type | Description |
|---|---|
{ModuleScript} | Every ModuleScript this client holds a reference to. |
Description
getloadedmodules lists only the modules that have been required. This one also includes modules a script has created or reached but not yet required, such as a ModuleScript just parented to Workspace. A module the client has never referenced is not listed.
Example
local module = Instance.new("ModuleScript")
module.Parent = workspace
print(table.find(getmodules(), module) ~= nil)
module:Destroy()
These are Game executor contracts. Check build requirements and session lifetimes before using them.
