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

> Push mot tham chieu Instance moi cho cung reference Instance ben duoi va tra ve no.

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

  ## Alias

  * `clonereference`

  ## Đối số

  <ParamField path={"instance"} type={"Instance"} required>
    Instance object duoc dung lam nguon cho tham chieu moi.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"reference"} type={"Instance"}>
    Tham chieu Instance duoc tra ve sau khi Instance cache chay voi reference object goc.
  </ResponseField>

  ## Ví dụ

  Tao mot tham chieu Instance khac tu Instance object hien co.

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

  local reference = cloneref(Players)
  print(reference)

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