> ## 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 object 값에 저장된 내부 Instance 포인터 값을 비교합니다.

<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"}>
    두 Instance object 값이 같은 내부 포인터 값을 포함하면 True입니다.
  </ResponseField>

  ## 예제

  두 Instance object 값에 저장된 내부 Instance 포인터 값을 비교합니다.

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

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