Object cacheOverview
compareinstances
Compares the identity of object references.
Details#
Compares whether two Instance references point to the same underlying object. Unlike wrapper identity, this remains useful with cloneref. Both arguments must be Instances.
Examples#
Example
local part = Instance.new("Part")
print(compareinstances(part, cloneref(part))) -- true
part:Destroy()