Skip to content
Astra
ProductDocumentationDownloadPricingCommunity
Sign inGet Astra

Explore Astra

Explore Astra

HomeProductPricingDocumentationDownloadRelease notesSystem status
Sign inDiscord
Roblox
IntroductionQuick start
Keys & licensingYour workspaceTroubleshooting
API reference
Closures
Debug
Environment
Metatables
Scheduler
Instances
Cache
Scripts
decompilegetallthreadsgetcallingscriptgetrunningscriptsgetscriptbytecodegetscriptclosuregetscriptfromthreadgetscripthashgetscriptsgetsenv
Signals
Filesystem
Input
Console
Cryptography
JSON
Regex
System
Scene files
Drawing
UI library
Renderer
Requests
Network
API referenceScripts

getallthreads

Lists live Lua threads.

Syntax

Signature
getallthreads() -> {thread}

Aliases

This function has no aliases.

Parameters

This function takes no parameters.

Returns

TypeDescription
{thread}One-based snapshot of live Lua threads.

Notes

The order is unspecified.

Example

Luau
local Result = getallthreads()
print(Result)

Related functions

getcallingscriptgetrunningscriptsgetscriptfromthreadgetscripts
PreviousdecompileScriptsNextgetcallingscriptScripts

On this page

SyntaxAliasesParametersReturnsNotesExampleRelated functions
Astra

A complete Luau workspace.
Your editor, scripts, and accounts in one place.

Get Astra

WindowsmacOSFree keyPricingRedeemDashboard

Product

EditorScript HubAccountsFeaturesComparison

Community

DiscordSystem statusSupport

Learn

DocumentationRelease notes

Developers

API referenceLuau LSPBenchmarks

Legal

TermsPrivacyCookiesRefund policy
System statusSupportTermsPrivacyCookies

© 2026 Astra. All rights reserved.