AcediaDocumentation

getthreadidentity

Reads the current thread's security identity number.

Returns the integer security identity of the calling thread, read from its Roblox context block.

For the raw 64-bit capability bitmask that sits beside the identity, use getthreadcaps. The two were previously aliased; getthreadcaps is now its own function with a different return shape.

getthreadidentity(): number

Aliases: get_thread_identity, getidentity, getthreadcontext.