StartIntroduction
sUNC Reference
Closures
Debug
Drawing
Encoding
Environment
Filesystem
Instances
clonerefcompareinstancesfireclickdetectorfireproximitypromptfiretouchinterestgetcallbackvaluegethuigetinstancesgetnilinstances
Metatable
Miscellaneous
Reflection
Scripts
Signals
WebSocket
Related to sUNC docsOfficial reference
Instancescloneref
Instances

cloneref

Creates a safe reference clone for an Instance.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function cloneref<T>(object: T & Instance): T

Returns

The typed cloned reference.

PreviousInstancesNextcompareinstances
On this pagesUNC sourceSignatureReturns