Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to remove all saved leaderstats and tools data?

Asked by
deris88 146
8 years ago

So I made rework to my RPG game but all players still has the same stats as they had and old tools. I'd like to remove both (old stats and old tools). How do I do it?

0
Set it all to 0, or make a new datastore key, like SetAsync("the key of yonder player and user id is "..player.UserId,data) theCJarmy7 1293 — 8y
0
I'm using data presistance(not sure if i spell it correctly). And how do I set it to0? deris88 146 — 8y
0
DataPersistence? I'm inexperienced with that, to fix this issue, I would change to dataStore theCJarmy7 1293 — 8y
0
I would highly suggest switching to DataStores. User#11440 120 — 8y
View all comments (9 more)
0
But how do I clear all saved stats and tools? deris88 146 — 8y
0
By switching to DataStores :P User#11440 120 — 8y
0
Unless you don't want to clear "every" save file, then I don't know. User#11440 120 — 8y
0
Well that doesn't helps me "Switch to DataStores". How do I even do it? deris88 146 — 8y
0
Ok, I managed to get rid of persistence save system. Is there a free script that I can use to auto save stats on leave with the leaderboard I'm using now or i need remake the leaderboard? deris88 146 — 8y
0
use a table as a guide to using data store, quite abit of people at least from what I have seen dont either understand how loops or tables work or data store service with modules or explaining their answer well scottmike0 40 — 8y
0
Change the keys of dtataPersistence. say the key is, player:SaveData("da players gold or kills or something,player.leadertstats.kills) And just make the key something else for the save/load. That should work theCJarmy7 1293 — 8y
0
Also, can you post the code? theCJarmy7 1293 — 8y
0
I fixed it, I switched to DataStore. Ty deris88 146 — 8y

Answer this question