getrunningscripts
Lists the scripts that are running right now.
Syntax
getrunningscripts() -> {LuaSourceContainer}
Also available as
get_running_scripts
Returns
| Type | Description |
|---|---|
{LuaSourceContainer} | Every script that currently has a live thread. |
Description
A script counts as running while at least one of its threads exists, for example a loop or a connection. Scripts that ran once and finished are in getscripts but not here.
Example
for _, script in getrunningscripts() do
print(script.ClassName, script:GetFullName())
end
These are Game executor contracts. Check build requirements and session lifetimes before using them.
