Is each table unique?

Are tables unique? I was wondering if I could use tostring({}) to generate a quick, unique id for something.

Use HttpService:GenerateGUID().

print(game:GetService("HttpService"):GenerateGUID(true)) 

-- prints out something like {A784E5F4-597D-476D-8784-E99D087A0EAC}
-- change true to false to get rid of the curly brackets. default is true

To answer your question though, I’m pretty sure tables are just random numbers when you call tostring() on them, but not if you are referencing the same table through a variable or something. Nonetheless use httpservice

2 Likes

I see. Isn’t it the same for GenerateGUID though?
Is Roblox’s UUID (GenerateGUID) system actually gaurenteed unique? - Help and Feedback / Scripting Support - Developer Forum | Roblox

1 Like

You have a higher chance of being struck by a meteor and a bolt of lightning at the same time than generating two identical GUIDs

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.