Skip to main content
Returns the identity for the current Luau thread, or for the first argument when that argument is a thread. Returned identities are 1 through 12; other stored values return 0.

Syntax

Aliases

  • get_thread_identity
  • getidentity
  • getthreadcaps
  • getthreadcontext
  • get_thread_context

Arguments

Returns

Example

Read the identity from the current Luau thread, or from a thread argument when one is provided.