Skip to content
DiagnosticsOverviewNew · 0.744

getscriptthreadstate

Describe the state reported for a script-associated thread.

Details#

Reports a script thread as running, normal, suspended or dead; none means no associated thread was found. This is a snapshot and is separate from isscriptpaused.

Examples#

Example

Luau
local ownScript = Instance.new("LocalScript")
print(getscriptthreadstate(ownScript)) -- none
ownScript:Destroy()