Give us access to Instance.UniqueId

because this API only exposes instances that exist within the original place file, it does not expose instances that exist only in a live server.

is that documented anywhere? i believe you considering robloxā€™s documentation can be spotty but i would hope that is mentioned because it is a glaring oversight. unique ids are an essential part of restful APIs so it seems odd theyā€™d just just leave it out for dynamically generated live instances when it works for static instances. i understand it can be difficult to sandbox lua but im confused why itā€™s exposed on the rest api side then if itā€™s not properly sandboxed.

well as an solution until this feature gets added even if its gonna get added, its a cool idea actually. But i would prefer if they would let to use those things instead of writing that system all by urself.

I think yall are ignoring that the UniqueId for Instances is literally unique in every place ever. (Hence why its so long)

You would be better off using your own UnqiueId system to differentiate parts

Though i agree there needs to be some kinda exposed UniqueId thats only unique to the game that should be exposed to devs

1 Like

Thatā€™s what UniqueId is. It only guarantees that the Id is unique within the current session/datamodel, not that it is unique across the entirety of Roblox.

Bumping this myself; trying to make a plugin that requires differentiating between two instances, considering if there are two instances with the same name and path (FullName) there is no telling which one is which without changing something about the instanceā€¦ well, except for the UniqueId, of course, which Iā€™d want to access.
Yes, technically, you can set attributes on these instances to make up your own UniqueId, but thatā€™s redundant and also theoretically can be easily modified by other developers that edit the game. Iā€™d prefer not to do this.

plsā€¦

Why donā€™t you compare the Instances themselves (i.e. InstanceA == InstanceB)? Iā€™m pretty sure that compares their Referents, which is what the Engine uses to differentiate them internally.

It does work in theory, but referents cannot be saved into plugin settings/a datastore, so the usefulness of this method is limited across different sessions.

2 Likes