getthreadidentity Synchronous

  • get_thread_context
  • get_thread_identity
  • getidentity
  • getthreadcaps
  • getthreadcontext
  • syn.get_thread_identity

Read the execution identity attached to the calling coroutine. Log it when an operation behaves differently under another script context.

Syntax
Luau
getthreadidentity() -> number

Parameters

This function takes no arguments.

Returns

number

The current identity as a number.

Usage notes

The result describes this coroutine at the instant of the call; another coroutine can have a different identity.

Example

Example
Luau
print("Current identity:", getthreadidentity())
Kawaii documentation