Scripts

getrunningscripts

Returns script instances that are currently running.

Syntax

getrunningscripts(): table

Returns

NameTypeDescription
scriptstableTable containing the requested values.

Description

Returns script instances that are currently running.

Call it without parameters. The function reads the needed context from the current runtime state.

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

Example

Example call with placeholder values.

local result = getrunningscripts()
print(result)