跳转到主要内容

参数

userdata
必填
要查找的 Script object。接受的 ClassName 值是 Script、LocalScript 和 ModuleScript。

返回值

thread | nil
关联的 Lua thread,或找不到 matching live thread 时为 nil。

示例

Read the Luau thread associated with a supported script Instance when one is available.