I’ve recently been having trouble with the DataStoreService:UpdateAsync() function. I made a script where once you have enough cash and purchase an item from the store, the :UpdateAsync() function should update the amount of cash that a specific player has in their specific data. It works, however, once you leave and rejoin, the number of cash resets to what you had prior to purchasing.
I’ve tried looking online for tutorials but there is limited information about this topic, and quite frankly, the Roblox developer hub about UpdateAsync is very confusing to understand, especially for someone like me who is new to DataStoreService and scripting as a whole.