Skip to content
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

Luau
local part = Instance.new("Part")
print(compareinstances(part, cloneref(part))) -- true
part:Destroy()