What is the UniqueId property?

I’ve noticed a new read-only property under all Roblox instances named UniqueId. This property can’t be accessed through code and is only visible within the object browser. What’s this new property about? Is it a unique identifier that instances use? Is this what the comparison between instances actually compares? Why don’t we have access to it through code? Security reasons?

Also when was that added? Are there any announcements related to it?

5 Likes

Apparently they tried adding it a few months back but had an issue where it was editable. It seems to be just making an existing backend thing accessible to developers (namely the identifier of each instance).
Speculation in other posts suggest that it may be to do with the Instance API, which does make use of a 32 digit hexidecimal identifying system for instances.

I expect that it will be mentioned in this weeks release notes, or potentially the one after.

6 Likes

Update: I’ve confirmed that it does seem to match up with the InstanceAPI IDs:
image

3 Likes

i literally just saw it so that means it was probably made visible by accident in this week’s update

2 Likes

Get hype this hopefully means we can uniquely identify objects without extra compiling in the code, no ObjectValues, whattttt

4 Likes

they should seriously allow this to be accessable thru scripts

22 Likes

Im pretty sure they made this to make games more secure. There’s no real reason to make it available to scripts.

Indeed, that’s what I’m waiting on myself because this can be used for private attributes that don’t replicate to the client, saving a ton of bandwidth and speed.

6 Likes

i think it’s like a unique identifier, so the engine can find the instance from the uniqueID and not the name or instance. my guess is that it is used by the engine so that each part has a “name”. look forward to this being used in scripts like a game:GetInstanceFromUniqueId()

1 Like

image
yeah, a very “unique” identifier I think, nobodies gonna figure out this one

1 Like