> ## 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 参照を push し、それを返します。

<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"}>
    元の object ポインタで Instance cache が実行された後に返される Instance 参照。
  </ResponseField>

  ## 例

  既存の Instance object から別の Instance 参照を作成します。

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

  local reference = cloneref(Players)
  print(reference)

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