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

> Wypycha nowa referencje Instance dla tego samego bazowego wskaznika Instance i zwraca ja.

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

  ## Aliasy

  * `clonereference`

  ## Argumenty

  <ParamField path={"instance"} type={"Instance"} required>
    Instance object uzywane jako zrodlo dla nowej referencji.
  </ParamField>

  ## Zwroty

  <ResponseField name={"reference"} type={"Instance"}>
    Referencja Instance zwrocona po uruchomieniu Instance cache z oryginalnym wskaznikiem object.
  </ResponseField>

  ## Przykład

  Utworz kolejna referencje Instance z istniejacego Instance object.

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

  local reference = cloneref(Players)
  print(reference)

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