Skip to main content

Arguments

userdata
required
Script object to look up. Accepted ClassName values are Script, LocalScript, and ModuleScript.

Returns

thread | nil
Associated Lua thread, or nil when no matching live thread is found.

Example

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