How can I make a rating system that saves like Roblox?

How can I make a game raing system similar to Roblox’s rating system. I am wanting to figure out how i can save this globally, and how i can check when a player rates one of the places inside the starterplace.

My game works by having multiple games you can play after joining a lobby, and i want a global rating system for the players to use

2 Likes

You can just use DataStoreService, as any place in an experience can access and change the same data. Learn more about data stores here.

2 Likes

I experimented with it earlier, but it didn’t seem to work. I also would like to know what time to save/load the data because if i save on exit and save on leave it may not work. (i think the issue was the time i saved and loaded)

2 Likes

Plus, i am not sure how i can globally save it. The api you sent only explained datastores saving to one player.

2 Likes

That doesn’t save to a player, it saves to their UserId which you use to identify whose data it is. You could just save it to the game ID or something similar

2 Likes

Do you think you could show me an example?

1 Like

Say each game you’re mentioning they can play has a name or ID. Instead of saving it to a player’s UserID like you normally would, you could just save it to the game ID or whatever you’re using to identify it and then use that key.

1 Like

Yes, ok. I just have one last question. How often should the data save/load, because if i do it when player joins/leaves (let’s say another player rated a game), the player that just left would override that other player’s rating

2 Likes

I’d save it as soon as the rating is changed and no time else. This is when data stores get rough to use imo because of these inconsistencies, and I’m not sure if I can give the best advice.

1 Like

bruh, nevermind. I just need a code example, but i can’t find one