Aliases
None.Arguments
thread
required
The coroutine whose environment, script association, or stack is inspected.
Returns
Instance?
The associated script Instance, or nil when metadata is absent or expired.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Reads a thread’s associated script.
getscriptfromthread(thread: thread): Instance?
print(getscriptfromthread(coroutine.running()))
