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

> Pousse une nouvelle reference Instance pour le meme pointeur Instance sous-jacent et la renvoie.

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

  ## Alias

  * `clonereference`

  ## Arguments

  <ParamField path={"instance"} type={"Instance"} required>
    Instance object utilise comme source pour la nouvelle reference.
  </ParamField>

  ## Retours

  <ResponseField name={"reference"} type={"Instance"}>
    Reference Instance renvoyee apres l'execution de Instance cache avec le pointeur object original.
  </ResponseField>

  ## Exemple

  Cree une autre reference Instance a partir d'un Instance object existant.

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

  local reference = cloneref(Players)
  print(reference)

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