I'm currently converting my game to have multiple places, with teleports to each place. The problem with this is that my existing save function I use to save data does NOT save/load for the entire game, merely for the place it saves in. The data values I have within the folder that I save/load, contains multiple values that take a long time to input into a data store. My question is if there is a way for the script to input key values into the data store quickly(to work on any value)?
Here's a part of the script that loads up the data within the folder:
if p:findFirstChild("Data") and pcall(function() Loaded p:LoadInstance("SavedStatPNum"..tostring(game.PlaceId)) end) then
for j, v in pairs(Loaded:GetChildren()) do
pcall(function() p.Data[v.Name].Value = v.Value end)
end
end
Please leave a suggestion, or even the answer down below. Thank you for reading this.
