Datastore keys help

So I want to save data from the game to servers using datastores. So I can easily change things for a rating system. But the thing is that i can’t make the datastore save or load to the game.

I dont want to use any form of special key for each player just the game. And when the server starts up or the first player joins the datastore will load to the server key or whatever.

Its to save some rating to an array table. ex: {1, 4.5, 2, 3.5, 1.5, 5, 5, 4, 5}

How would I do this? All I need to know is how I would be able to save and load a key that saves on the game datastore for a not special key.

DataStore:SetAsync("Key_"..game.GameId, {})

If you’re just asking for a generic key then you can use the “GameId” property of the DataModel object (referenced by the global “game”).

You can make your DataStore keys any string value, they don’t need to pertain to a single player if you don’t want them to.

Tables can be stored directly in DataStores too, providing they aren’t mixed tables (array & dictionary hybrids), you won’t need to convert/format them differently,