ThreadInitializationInformation
Type
Contains information to initialize the execution of a new luau thread.
Properties
thread
ThreadInitializationInformation.thread:
thread?
The parent thread. If nil, the caller is assumed to be the parent.
script
The script global for the thread. This will not modify the thread's RobloxExtraSpace/userdata field.
identity
ThreadInitializationInformation.identity:
number
The identity of the thread (execution context), if nil, the parents execution context is used.
WARNING
This value must be between 0 and 8, else the parent execution context is used.
env
ThreadInitializationInformation.env:
{
[
any
]
:
any
}
|
nil
The environment of the thread, if nil, a sandboxed version of the parent's environment is used.