Volt

getinstancecache

Gets all cached instance references.

Syntax

getinstancecache() -> table

Returns

TypeDescription
tableDictionary of cached instances

Description

getinstancecache returns a table containing all currently cached instance references.

Example

local cache = getinstancecache()
print("Cached instances:", #cache)

for address, instance in pairs(cache) do
    print(address, instance:GetFullName())
end

On this page