If you are experiencing data loss in your game then I would recommend learning about profile service, a library for interacting with data-stores that is made by another player.
Firstly go to the devforum post Save your player data with ProfileService! (DataStore Module) and then follow instructions on there.
There is additionally an example on there.