So for my game I’ve been using this DataStore module script I found and it’s been working but now I’ve been having some problems with saving some values, notably a string value.
I have a pretty similar module albeit slightly different for saving player sword data just to not overload my player datastore since I have like 10 values already being updated there
And I tend to get this error whenever I leave the game and rejoin it, likely because it’s not saving it correctly or because it’s not loading it correctly.
I’m contemplating just switching from Data Stores to ProfileService or something since how finicky this is but since this is just a test game that I don’t plan on updating I don’t really want to go through all the effort of switching the modules since #1 I have no idea how to use profileservice and #2 everything I’ve made is already based around how this is organized.
Yea profileservice is better but since I already set everything to be based around data stores I feel like it would take ages and a lot of modifying scripts to swap over.
It doesn’t take long at all, if this game is still not released I definetly recommend you switch over to ProfileService, it will make managing way easier.
So I’ve mainly reconfigured my scripts for this module, but when trying to do my nametags again that display some leaderstats values it returns an error saying it can’t find leaderstats in Players.PlayerName. I imagine it’s because the profile hasn’t loaded in yet but I can’t figure out how to make it wait.