Skip to main content
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.

Sintaks

Alias

  • set_thread_identity
  • setidentity
  • setthreadcaps
  • setthreadcontext
  • set_thread_context

Argumen

Contoh

Set the identity on the current Luau thread, or on a thread argument when one is provided.