I've seen a lot of scripts that are supposed to do this, but none of them seem to work correctly. I've tried to make my own, but it didn't work correctly either (and I've since deleted the script, so I can't post it here either).
Basically, if I'm in studio, and I test the game, I click on the "Players" tab and then I click on myself, and I see 7 folders. I want to save 2 of them in particular: leaderstats and playerstats. The leaderstats folder contains 3 StringValues, for money, blocks mined, and depth. The playerstats folder contains a lot of NumberValues, one for each ore in my game.
It would also help if I could save the players' backpacks between sessions. This is another one of the folders, and it just contains a pickaxe, but eventually players will be able to upgrade their pickaxes, and I want the upgrades to save.
Is there any actual way to do this?

2 comments
Please note that you cant save in Studio. You'll need to test it in a server
You can save in studio. You have to give studio access to API services though.