local suc , fail = pcall(function()
--Load data here
end
if suc then
--load data
else
--create a backup datastore and load that instead
end
im just wondering if this would be something good to use incase of data failures so if the main datastore failes to load it will just load in a backup one so it does not override the main datastore.

8 comments
just create 2 datastores, so if one fails, there will be another with the exact data...
yea but for that wont i have to save both datastores everytime the player buys money or leaves the game you know
You can see an example from my getting data function: https://pastebin.com/LFGNtvba
Although there's not a backup datastore.
I find that rather unnecessary.
thanks
Np.
If I helped you, be sure to put [Solved] in the title so that people know you don't need more help.