Skip to main content

参数

thread
必填
Luau thread whose associated Script Instance is returned.

返回值

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

示例

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