getcallbackthread
Returns the thread that installed a callback. A thread from another state gives nil.
Thread identity, hidden properties, scriptability and properties the engine does not expose.
Returns the thread that installed a callback. A thread from another state gives nil.
Also available as getthreadcontext getthreadidentity get_identity get_thread_context get_thread_identity
Returns the current thread's identity, a number that sets which functions and properties it may use.
function getthreadidentity(): number
Also available as get_render_stepped_list
Returns the functions connected to the render step.
Also available as is_scriptable
Returns whether a property is scriptable, meaning normal scripts may read it.
function isscriptable(object: Instance, property: string): boolean | nil
Also available as setthreadcontext setthreadidentity set_identity set_thread_context set_thread_identity
Changes the current thread's identity.
function setthreadidentity(id: number): ()
Also available as set_scriptable
Marks a property scriptable or not, so it can be read through normal property access. Returns the previous state.
function setscriptable(instance: Instance, property_name: string, state: boolean): boolean | nil