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

> يقارن قيم مؤشر Instance الداخلية المخزنة في قيمتي Instance object.

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

  ## الوسائط

  <ParamField path={"first"} type={"Instance"} required>
    اول Instance object للمقارنة.
  </ParamField>

  <ParamField path={"second"} type={"Instance"} required>
    ثاني Instance object للمقارنة.
  </ParamField>

  ## القيم الراجعة

  <ResponseField name={"equal"} type={"boolean"}>
    True عندما تحتوي قيمتا Instance object على نفس قيمة المؤشر الداخلية.
  </ResponseField>

  ## مثال

  قارن قيم مؤشر Instance الداخلية المخزنة في قيمتي Instance object.

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

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