Skip to main content

Arguments

thread
required
Luau thread whose associated Script Instance is returned.

Returns

Instance | nil
Associated Script Instance when available; otherwise nil.

ตัวอย่าง

Read the Script Instance stored on a Luau thread, if one is attached.