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