You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I am wanting to save information in my DataStore.
What is the issue?
I am trying to save the information in my DataStore but I am getting this error (as you can see below along with my code), I am unsure how to fix this issue in regards to what I am wanting to achieve.
What solutions have you tried so far? I have looked on the DevForum for any solutions but I have not found any, all of the ones I have found do not help my current issue in regards to what I am trying to achieve.
Like it says, it can’t store a Dictionary in the datastore. What you can do is drop all the keys in the Dictionary and downgrade to a table, something a datastore will accept. The order should stay the same, so when you retrieve something like Height, you can use the index 8 on the table. Make sure to also convert all your data into strings first, it’s the most common and easiest way to store the data in datastores.
Quick note, if your firstname and lastname isnt unique, it means that anyone who sets that firstname and lastname can easily overwrite or retrieve that data, even if they aren’t the owners. Alongside this, you can scrap the FirstName and LastName parameters if you still decide to go through with this, as you will already have the names to retrieve the data.
You can actually store dictionary tables in a datastore. You are probably getting the error because you are trying store the player instance in your first line. Instead, you have to convert it to string and store player’s name or player’s userid
I fixed this issue but just a general question, how can I get the number of GetAsyncs found in my DataStore? Lets say I stored 3 with the following keys:
“HELLO”
“WORLD”
“HELLO”
How would I find how many have the key “HELLO” or how many it finds with that specific key?