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

# cloneref

> Mendorong referensi Instance baru untuk reference Instance dasar yang sama dan mengembalikannya.

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

  ## Alias

  * `clonereference`

  ## Argumen

  <ParamField path={"instance"} type={"Instance"} required>
    Instance object yang digunakan sebagai sumber untuk referensi baru.
  </ParamField>

  ## Return

  <ResponseField name={"reference"} type={"Instance"}>
    Referensi Instance yang dikembalikan setelah Instance cache berjalan dengan reference object asli.
  </ResponseField>

  ## Contoh

  Buat referensi Instance lain dari Instance object yang sudah ada.

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

  local reference = cloneref(Players)
  print(reference)

  local sameAlias = clonereference(Players)
  print(sameAlias)
  ```
</div>
