Scripts

getscripts

Returns all script instances reachable by the runtime.

Syntax

getscripts(): table

Returns

NameTypeDescription
scriptstableTable containing the requested values.

Description

Returns all script instances reachable by the runtime.

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 = getscripts()
print(result)