compareinstances
Returns true when two references point at the same underlying instance, even if one of them came from cloneref.
Signature
compareinstances(a: Instance, b: Instance): booleanParameters
aInstanceFirst reference.
bInstanceSecond reference.
Returns
boolean
Example
local a = game:GetService("Workspace")
local b = cloneref(a)
print(a == b) --> false
print(compareinstances(a, b)) --> true