So i have been trying to insert keys into a dictionary via scripts however it seemingly isn’t able to actually insert it based on a print function I have that prints the contents of the dictionary. And it prints out nothing, the dictionary is empty for some reason.
The reason as to why I’m doing this is because I want to save the amount of uses an item has left when the player leaves. And i want to save that uses value specifically and somehow link it to the item so i can be able to load it into the item.
for i,trinket in pairs(trinkets) do
trinketusevalues[trinket.Name] = trinket.Amountleft.Value
end