> ## 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

> Zwraca nowa array table zawierajaca kazdy object value obecnie zapisany w Instance cache. Function nie przyjmuje arguments. Nie filtruje wedlug Parent, ClassName, DataModel fieldship, nil-parent state ani Instance validity poza sprawdzeniem, ze kazdy registry value jest object. Entries sa kopiowane do zwracanej tabeli pod sequential numeric indexes zaczynajac od 1. iteration order pochodzi z table iteration po cache i nie jest sortowany przez function.

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

  ## Zwroty

  <ResponseField name={"instances"} type={"{ Instance }"}>
    Array table wartosci object values skopiowanych z Instance cache table.
  </ResponseField>
</div>
