getscripts
Collects every script (LocalScript, Script, ModuleScript) in the tree under root — defaults to the whole DataModel. Capped at 8000 scripts.
Syntax
getscripts(root?: any) -> table
Parameters
| Parameter | Type | Description |
|---|---|---|
root? | any | The root value used by the call. |
Returns
| Type | Description |
|---|---|
table | {Instance} |
Description
getscripts is part of the Scripts & decompiling library. Script helpers inspect scripts in the live DataModel and can read bytecode or decompile source.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
Example
for _, script in ipairs(getscripts()) do
print(script:GetFullName())
end
Notes
- Script bytecode and source are read from the live game.