So basically I need to make a script that knows when a player joins and I know how to do this, but it would also need to assign to every new player that joins an ID, just like Roblox’s ones.
I.e. When a player joins in the game, and it is the first player ever to join the game, it gives them the ID of 1, when another player joins the game, it gives them the ID of 2, and so on. I kinda know how to do this part as well, but the script would also need to store those IDs so that it can access them in another moment, for example, give every player their respective ID as Name. The data would also need to be shared in-between servers in real-time so that when 2 players join at the same time but on 2 different servers, they don’t get the same ID.
What’s the best way to achieve this?
Keep in mind that I have no knowledge whatsoever of data-saving, but I know all the rest.