Scripts & runtimeOverview
getscriptthread
Finds a thread associated with a script.
Details#
Returns a discoverable thread for a script object, or nil. Supported script classes include LocalScript, ModuleScript, Script and CoreScript; a newly created script does not automatically have a running thread.
Examples#
Example
local ownScript = Instance.new("LocalScript")
print(getscriptthread(ownScript)) -- nil without a running thread
ownScript:Destroy()