Alright, i think we are just miscommunicating here, i don’t think i’m making my question clear enough for you, that’s my fault
yes i understand that, the :BeforeInitialGet() receives the store, then it runs through a dictionary of all the names that exist, and it transforms that serialized number into a string for the name, in your example then you have
local itemName = InitialDictionary[id]
deserialized[itemName] = true
so it adds to this new dictionary a name and a value of the name, but that deserialized[itemName] = true sends through the value as true, overriding the value that you may have wanted to be saved when you left before, say it was false… so when you rejoin the value is now true. And then it sends it through the return deserialized and the :Get() receives it. But, with all the experimenting i’m doing, i can not seem to get the value that was originally saved.
For example i have a name value- [“CharacterName”] = “Bob the builder”- and if i wasn’t doing the serialization it does infact save, but when i serialize it, it saves the [“CharacterName”] as a number, and then when i deserialize it when i rejoin, it isnt recieving “Bob the builder”.
Originally when i had the deserialized[itemName] = true, it was passing [“CharacterName”] = true, if i dont have that being placed into the deserialized table then Get() wont receive anything.
What would help me is if you explained how your example of your True/false inventory serialization/deserialization indexed the saved value of the “Cool Sword” and delivered it into the value, it might help me understand how to fix my issue.
I will reiterate, i understand :BeforeInitialGet() runs the first time that the :Get() is called and the :BeforeInitialGet() runs through the saved serialization of the names which are indexed as numbers, and it runs through another table that indexes the String names of the saved serialized id’s, which are then passed through the return and sent through the Get(). I understand all of that, but how do i apply the saved value of “Bob the builder”.