For Loop does not work with Data Stores?
First, I had made a data store for 10 values, and it worked fine and all in my place. I had sent it to someone else and for some reason, it only loaded one value. He had put everything in the right spot. I found it odd, and came here to find the answer to the question.
Here is the code, I cut out the variables due to them looking like they did not need to be mentioned.
03 | local b = DataStore:GetDataStore( "Inv" ..i) |
04 | b:UpdateAsync(key, function (oldValue) |
05 | local newValue = oldValue or "None" |
06 | local a = Instance.new( "StringValue" ) |
Yes, I stated player and key.