Returns a new userdata pointing at the same instance, but one the engine’s cache treats as a separate reference. The clone drives the same object, yet == against the original is false. This is how you hold a reference a game script cannot detect by comparing against its own.

Parameters

Instance
required
The instance to clone a reference to.

Returns

Instance
A reference to the same instance that compares unequal.

Example

Errors