Greetings everyone. Directly to the point, I am trying to save a table with DataStore and I am getting this error:
Cannot convert mixed or non-array tables: keys must be strings
Here is my code. (NOTE: It's translated for you to understand better, but you can be sure language is not the problem causing this error.)
local ArmyFolder = game.Workspace.Armies
for a, b in pairs(ArmyFolder:GetChildren())
local ArmyID = b.Settings["ArmyID"].Value
Armies[ArmyID] = {}
Armies[ArmyID]["StartX"] = b.Settings["Start"].Value.X
Armies[ArmyID]["StartY"] = b.Settings["Start"].Value.Y
Armies[ArmyID]["StartZ"] = b.Settings["Start"].Value.Z
Armies[ArmyID]["EndX"] = b.Settings["End"].Value.X
Armies[ArmyID]["EndY"] = b.Settings["End"].Value.Y
Armies[ArmyID]["EndZ"] = b.Settings["End"].Value.Z
Armies[ArmyID]["StartTime"] = b.Settings["StartTime"].Value
end
I spent hours(Literally hours, like 7-8 hours) looking for the problem and trying every combination I could try... I really need help. Thanks already!

1 comment
I don't see anything about datastore in there. It might be better to find a minimal repro of the problem with real code, and post that.