Scripts

getloadedmodules

Returns loaded ModuleScript instances, optionally excluding core modules.

Syntax

getloadedmodules(excludeCore?: boolean): table

Arguments

NameTypeDescription
excludeCore?booleanWhen true, core modules are excluded from the result.

Returns

NameTypeDescription
modulestableArray table of loaded ModuleScript instances.

Description

Returns loaded ModuleScript instances, optionally excluding core modules.

Call it with 1 parameter(s): excludeCore. The argument table explains which values are required and which ones only refine the behavior.

It returns modules (table). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = getloadedmodules(true)
print(result)