Something weird with tables

Shouldnt it find OldValue[UserId]? What am I doing wrong

Try printing the UserId itself. Does it match? If it does, try converting the UserId into a string with tostring(UserId).

UserId is the user id of the player with numbersimage It quite sure it should work but it somehow doesnt

Have you tried converting the UserId into a string?

1 Like

I tried just now, works, thanks! I was dumb and forgot that it should be a string when checking lol

On another subject, do you have any idea how would I insert that properly to a table?
[UserId] = {Kills = PlayerKills, Honour = PlayerHonour}