Hello, I stuffed up stats in my game and I want to know if I could revert the save an hour back. I am using datastore2.
Yes, there is a way to revert it, but it will not be easy.
Write a script in ServerScriptService that sets your data back to a desired data. Like so:
local Datastore2 = -- wherever you put datastore2, eg game.ServerScriptService.Datastore2
game:GetService("Players").PlayerAdded:Connect(function(plr)
if plr.Name == "your name" then
local coinsStore = Datastore2("coins or something",plr)
coinsStore:Set(--[[whatever you want to set it to]])
end
end)
I don’t believe you can do this using Datastore2, without logging requests before and after they are handled.