My game has data loss and I dont know how to fix it

Just use ProfileService, it’s one of the most powerful data saving modules and will handle all these headaches for you.