Skip to content
Object cacheOverview

getreg

Provides the runtime registry entry point.

Details#

Returns the live Luau registry table for the current state. Its keys are runtime-owned and not a stable public schema. Reading the registry does not clone values stored in it.

Examples#

Example

Luau
local registry = getreg()
print(type(registry)) -- table