Skip to main content
Returns every ModuleScript currently loaded on the client, implying that require has been called on it at least once.
Most commonly used for reverse engineering - the name of the loaded module could give you some hints on what it does. Useful, when you’re only inspecting ModuleScripts and not LocalScripts.

Returns

{ModuleScript} - an array of every loaded ModuleScript. Every time you call getloadedmodules, it will give you a new array - edits don’t carry between calls.

Aliases

  • getmodules

Example

Print every loaded module’s path and pick out names worth taking a look at - depending on your script.
Always check parameters and return values when working with this library function.