Swaps a cached Instance with another so every existing reference to it resolves to the replacement.
After the call, any script still holding old is really working with new - reading old.Name returns new.Name, and print(old) shows new. The old Instance is no longer reachable through the cache.
Most commonly used to hide a watched Instance from anti-cheat scanners: swap the real object for a harmless decoy so game scripts that re-resolve it through the cache get the decoy, while your code keeps the real one with cloneref.
Parameters
Returns
void
Example
Always check parameters and return values when working with this library function.