getscriptfromthread
Finds the script associated with a thread or its formatted thread string.
Returns nil for executor threads, unrecognized strings, or threads without a reachable script. The alias getscriptthread has the same direction: it returns a script from a thread.
getscriptfromthread(target: thread | string): LuaSourceContainer?Parameters
| Parameter | Type | Description |
|---|---|---|
target | thread | string | Thread, or the string produced by tostring(thread). |
Aliases: getscriptthread.
