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

Wiping saved data from the data store?

Asked by 9 years ago

I will try to make this as easy to understand as possible. Sorry for such a short post.

What is a simple way to wipe saved data from the DataStore?

1 answer

Log in to vote
2
Answered by 9 years ago

I don't know if their is a function or something to clear Data. However, you can just change the name of the datastore you're accessing. Nothing would exist there, basically a Data wipe. Also, a new place will not contain the same data. Here is an example of what I mean: (Of course, in a script)

game:GetService("DataStoreService"):GetDataStore("GameData")
-- Now we want to "wipe" it, so start using a different one!

game:GetService("DataStoreService"):GetDataStore("DifferentData")

--DifferentData will not contain anything inside because it doesn't exist, so you're making a whole new one!

Comment any questions and accept/upvote if this helped!

Ad

Answer this question