Skip to the edit as the information below is incorrect.
I need to check if a player's ID is in a dictionary table. The problem is that the ModuleScript I'm using to get the table will return it like this:
local table = { ['name'] = "123456789" }
Because of this, I can't really use something like if table[player.UserId] then
, where a key would be like ['123456789'] = true
.
Is there a different way I could do this that would be compatible with this?
I do not need the key to have a specific name. Thank you!
BIG EDIT: Apparently, the ModuleScript actually returns an array like this:
[{name="cardName",desc="cardDescription",...},{name="cardName",desc="cardDescription",...}]
This completely changes my question, sorry for the confusion.