Hi!
I've been wondering about DataStores. I've read the wiki, watched tutorial videos off of youtube and read through some free model DataStore scripts but I still don't understand exactly how they work...
I get you need to make a DataStore and then generate each player a unique key, and the best way to do this is using their player id, like so;
local ds = game:GetService("DataStoreService"):GetDataStore("instances")
local key = "player-"..player.userId -- Yes I am aware this wouldn't work as player isn't defined ;)
But anything after this is just a huge what, especially when having many different instance values you wish to save... If someone could give me an explanation or a link to a useful video / website that'd be much appreciated!
Thanks =)

2 comments
Thanks, this did indeed help! But say I were to make a table including all of the instance values I wished to save and connected it to a changed function, would this save all of the values in the table once one of them changes or would it not work at all??
I'm not sure but I know that you can save Keys as long as they are strings and that if you were to save a table of numbers they would have to go up in increments of 1. If the answer helped please don't hesitate to set this question as 'answered'.