> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# getinstances

> Returns a new array table containing every object value currently stored in the Instance cache. The function takes no arguments. It does not filter by Parent, ClassName, DataModel fieldship, nil-parent state, or Instance validity beyond checking that each registry value is object. Entries are copied into the returned table at sequential numeric indexes starting at 1. The iteration order comes from table iteration over the cache and is not sorted by the function.

<div className="real-function-page">
  ```lua theme={null}
  getinstances(): { Instance }
  ```

  ## Returns

  <ResponseField name={"instances"} type={"{ Instance }"}>
    Array table of object values copied from the Instance cache table.
  </ResponseField>
</div>
