getthreadidentity Synchronous
get_thread_contextget_thread_identitygetidentitygetthreadcapsgetthreadcontextsyn.get_thread_identity
Read the execution identity attached to the calling coroutine. Log it when an operation behaves differently under another script context.
Luau
getthreadidentity() -> numberParameters
This function takes no arguments.
Returns
numberThe 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
Luau
print("Current identity:", getthreadidentity())