so at first glance, i notice you are saving two datastores at the same time which is NEVER a good idea unless you are A very good developer that knows datastores well because if you have say 20 people joining thats 40 datastores at once which will cause the requests to be dropped. Secondly, the main issue I see is that you, as the error states, are storing a string value which is not allowed. What I do and what I recommend is storing all the values in the game in a single table and then sending that in a single datastore request. Then, when you recieve it you can simply call the key of the table reducing code and complexity.
6 Likes