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

# compareinstances

> Porownuje wewnetrzne wartosci wskaznika Instance zapisane w dwoch wartosciach Instance object.

<div className="real-function-page">
  ```lua theme={null}
  compareinstances(first: Instance, second: Instance): boolean
  ```

  ## Argumenty

  <ParamField path={"first"} type={"Instance"} required>
    Pierwsze Instance object do porownania.
  </ParamField>

  <ParamField path={"second"} type={"Instance"} required>
    Drugie Instance object do porownania.
  </ParamField>

  ## Zwroty

  <ResponseField name={"equal"} type={"boolean"}>
    True, gdy obie wartosci Instance object zawieraja ta sama wewnetrzna wartosc wskaznika.
  </ResponseField>

  ## Przykład

  Porownaj wewnetrzne wartosci wskaznika Instance zapisane w dwoch wartosciach Instance object.

  ```lua theme={null}
  local Players = game:GetService("Players")
  local ReplicatedStorage = game:GetService("ReplicatedStorage")

  print(compareinstances(Players, Players))
  print(compareinstances(Players, ReplicatedStorage))
  ```
</div>
