I have two dictionaries, one is a template and the other needs to fit the template. I want to check on one of the dictionaries to see if it has all the keys the template has.
I tried making a for loop through all values in the template then checking if the dictionary to change doesn’t have the key but checking if the key = nil in the dictionary. However when i do this i get an error
“attempt to index nil with ‘key’”
Does anybody know how to check if a dictionary has a key and value…
sorry to the both of you, i was using a datastore for this and when i retrieved data from a player that previously had no data the user didn’t have a dictionary to begin with it was just nil. I just had to declare it as a table first. Thanks for your help though