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

> Pusht eine neue Instance-Referenz fuer denselben zugrunde liegenden Instance-reference und gibt sie zurueck.

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

  ## Aliase

  * `clonereference`

  ## Argumente

  <ParamField path={"instance"} type={"Instance"} required>
    Instance object, das als Quelle fuer die neue Referenz verwendet wird.
  </ParamField>

  ## Rückgaben

  <ResponseField name={"reference"} type={"Instance"}>
    Instance-Referenz, die zurueckgegeben wird, nachdem Instance cache mit dem originalen object reference ausgefuehrt wurde.
  </ResponseField>

  ## Beispiel

  Erstelle eine weitere Instance-Referenz aus einem vorhandenen Instance object.

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

  local reference = cloneref(Players)
  print(reference)

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