compareinstances
Compares instance identities.
Syntax
Signature
compareinstances(First: any, Second: any) -> booleanAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
First | any | First wrapper or reference proxy. |
Second | any | Second wrapper or reference proxy. |
Returns
| Type | Description |
|---|---|
boolean | Whether the supported wrapper identities match. |
Notes
Table reference proxies are unwrapped first. Tables match when they are the same table or have the same valid numeric string _id. Supported userdata wrappers are compared by their stored native pointer.
Example
Luau
local Result = compareinstances(game:GetService("Players"), game:GetService("Players"))
print(Result)