This question is very similar to this thread, but the answer seems a bit overcomplicated for what I’m attempting to do. I could be mistaken.
How would I check and apply this change to any older player saves?
Old Datastore:
local DefaultData = {
Test = {
Head = 0,
},
}
New Datastore:
local DefaultData = {
Test = {
Head = 0,
},
Maps = {
Standard = true,
},
}
Here’s what I’ve attempted (setting the players data when they first join):
if(Data.Maps == nil) then
table.insert(Data, DefaultData.Maps)
end