Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Deleting data persistance?

game.Players.PlayerAdded:connect(function(p)
    p:WaitForDataReady()
    local SV = Instance.new("StringValue", p)
    SV.Name = "Chats"
    C = p:LoadString("Chats")
    SV.Value = C
    p.Chatted:connect(function(msg)
if msg == "Delete" then
       WaitForDataReady:ClearAllChildren()
 end   end)
end)

is not deleting the stuff i have in the data persistence stuff. Or can you not clear data persistence? I wanted it to delete anything that was ever saved with data persistence to be "forgotten"

1 answer

There is no method to "delete" anything saved in data persistence.

However, you can overwrite it.

For example, if it was a String, you could use player:SaveString(key, "")

This discussion is preserved as it was. New answers, comments, and votes are closed.