Skip to main content

Alias

  • set_thread_identity
  • setidentity
  • setthreadcaps
  • setthreadcontext
  • set_thread_context

Đối số

thread
Optional Luau thread to update. When provided as argument 1, identity must be passed as argument 2. If argument 1 is not a thread, it is treated as identity instead and the current thread is updated.
number
bắt buộc
Identity value to apply. It is converted to an integer, clamped to the range 0 with 12, and then applied.

Ví dụ

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