Can't find string from table

I don’t know what the problem is but it just wont find it. It just returns nil all of the time, anyone know about this?

Script:

print(userMessage.FilteredMessages, player.UserId, userMessage.FilteredMessages[player.UserId])

Output:
image
(table, userId, string)

1 Like

There is a difference in the key of string 64665747 and number 64665747, therefore completely missing the entry.

Oh I see, tried adding tostring(player.UserId) now and that worked! I didn’t know it worked like that. Thanks!