Yuari
Documentation
Docs/Script/getloadedmodules

getloadedmodules

Returns loaded ModuleScripts.

Syntax

getloadedmodules() -> table

Parameters

This function takes no parameters.

Returns

TypeDescription
tableLoaded ModuleScripts

Description

getloadedmodules is part of the Script library. Script helpers inspect scripts loaded by the client, their bytecode and the Luau threads created for them.

The call is read-only: it resolves the current value when invoked and does not change the underlying state.

Example

for _, module in ipairs(getloadedmodules()) do
    print(module)
end

Notes

  • Script data reflects the client's live script objects and may change after execution.