Cause there is no New House in the User.Houses. What I want is to only add in the new house when a player has unlocked it, so it has to get added into the table when they unlock the house
I get this error when it tries to save now tho
[Cannot convert mixed or non-array tables: keys must be strings]
Is there anyway to debug this? I’ve got a DataStore viewer, and it looks the same as the default table
Both those tables contains House and Purchases. The Default.House table has items in it, while the Nicer House has 2 empty tables. It should still save tho?
So what part of it is mixed?? Cause if I just leave with only the Default table it works fine, it’s only when the Nicer House table gets added in (which Im doing like this)
So before they unlock the new house, when I leave rejoin, etc. It works fine, no errors, it’s only when I add in the house that I get the error of
[Cannot convert mixed or non-array tables: keys must be strings]
when I leave the game.
Now, according the DataStore viewer plugin, it looks like this when the new house is added
Your i variable is most likely an object. Add a print(i, typeof(i)) before adding it into the table (or show the code where you define i, like people already asked you to do).
Perhaps you accidently store the instance in it, while you meant to store its name?