> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Threads

> Konu bağlamı ve kimliği.

<div className="real-category-page">
  Konu bağlamı ve kimliği.

  ## Kullanılabilir fonksiyonlar

  <CardGroup cols={2}>
    <Card title="getscriptfromthread" href="./getscriptfromthread">
      Returns the Script Instance associated with a Luau thread, or nil when no valid script reference is available.
    </Card>

    <Card title="getthreadidentity" href="./getthreadidentity">
      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.
    </Card>

    <Card title="isourthread" href="./isourthread">
      Returns whether the required Luau thread argument is currently present in Real's Real caller context. The function requires argument 1 to be a thread with type checking, converts it with thread conversion, checks Real caller context.Has(..), and returns exactly one boolean. is\_our\_thread is an alias for the same function.
    </Card>

    <Card title="setthreadidentity" href="./setthreadidentity">
      Sets the identity for a Luau thread and returns no values. If argument 1 is a thread, argument 2 is required and must be a number; that thread is targeted. Otherwise argument 1 is required and must be a number, and the current thread is targeted. The number is read with integer conversion, clamped below 0 to 0 and above 12 to 12, then passed to Real. Real stores the identity and the matching IdentityToCapabilities result on the thread object, and also updates the TLS identity data structureure when one is available. Aliases call the same function.
    </Card>
  </CardGroup>
</div>
