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

> Помещает новую ссылку Instance для того же базового указателя Instance и возвращает ее.

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

  ## Алиасы

  * `clonereference`

  ## Аргументы

  <ParamField path={"instance"} type={"Instance"} required>
    Instance object, используемая как источник для новой ссылки.
  </ParamField>

  ## Возвраты

  <ResponseField name={"reference"} type={"Instance"}>
    Ссылка Instance, возвращенная после выполнения Instance cache с исходным указателем object.
  </ResponseField>

  ## Пример

  Создайте другую ссылку Instance из существующей Instance object.

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

  local reference = cloneref(Players)
  print(reference)

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