This is the code I use to save in a datastore, the prints were to check what was going on & when Value was saving it was completely fine, but after Value2 saved it not only overwrote Value2 (which is meant to happen) but it overwrote Value aswell (which shouldn't happen)
if stat.Parent.Name:match("Form") then
if stat.Name == "Value" then
Data[stat.Parent.Name] = stat.Value
print(stat.Name.." "..stat.Value.." "..stat.Parent.Name)
end
if stat.Name == "Value2" then
Data["Hair "..stat.Parent.Name] = stat.Value
print(stat.Name.." "..stat.Value.." "..stat.Parent.Name)
end
end
print(Data["Hair Form3"])
print(Data["Form3"])
(In studio screenshot: https://gyazo.com/06f164a9b6113944985f6f61ec36fe18)
I need to know if this is something with roblox or something that I'm missing cause it has had me stuck for a few days.

1 comment
The values are both in a table, the code I posted was just to try get the values saved into the actual datastore (Data is just a table for reference)