Saving data on all servers

Hello, my task is to save the same data (for example, let it be number 10) on all servers. That is, when the player went to any server, he saw this number, but the players should be able to change it and it changed throughout the game. That is, if a player has changed it to 9, all players saw how it changed. P.S. - I know that you need to use DataStore, but I do not know how to do it. I know how to save the data of one player (for example coins), but here I need to save a little differently. How? Send me a link or maybe a script if someone has one, please)

To save data across all servers, you just have to make sure the data you are saving as a universal key, for example “000”, instead of the player’s player Id. The data will save across all servers but the new data will only be shown in new servers or you can use

 local DataStore = DataStoreService:GetDataStore("Your Datastore name")

Grabbing the data from the global datastore / server-wide datastore and every few seconds updating the number or save value of that server to the new value.

2 Likes

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