APEX docs
Reference

Reflection

Thread identity, hidden properties, scriptability and properties the engine does not expose.

getcallbackthread

Returns the thread that installed a callback. A thread from another state gives nil.

gethiddenproperty

Also available as get_hidden_property

Reads a property normal scripts cannot see. Returns the value and whether it was a hidden one.

function gethiddenproperty(instance: Instance, property_name: string): (any, boolean)

getidentity

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

getrendersteppedlist

Also available as get_render_stepped_list

Returns the functions connected to the render step.

isscriptable

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

sethiddenproperty

Also available as set_hidden_property

Writes a property normal scripts cannot set.

function sethiddenproperty(instance: Instance, property_name: string, property_value: any): boolean

setidentity

Also available as setthreadcontext setthreadidentity set_identity set_thread_context set_thread_identity

Changes the current thread's identity.

function setthreadidentity(id: number): ()

setscriptable

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