How would I make a unique number identification system?

I’m currently making a simulator and I have pets inside of the game. But I want every pet to have it’s own UNIQUE NUMBER ID that cannot be replicated across any server.

Example:

  • Server gives a player a Dog with an ID of 1
  • Server gives player another Dog with an ID of 2

I want to make it so that if a player from another server gets a Dog, that said Dog has an ID of 3.

Datastores haven’t really been of much luck to me, since the constant requesting of data could lead to a lot of problems.

(PS: A case in this will be used is so that first time pets of a limited time offer are much more rare, and tradeable.)

Help is appreciated

You can use game.HttpService:GenerateGUID(false) that returns a randomized unique identifier string. I think the chances of a collision are really small.

I’m not really talking about that, I want it to be in number form. Yet unique to every pet.