I’m trying to get a player’s UserId using this function that holds the array of all the player id’s in the server. However, it gives me this error, implying that one of the indexes is nil. I’m assuming that this is the key variable, but I don’t know how to go about changing it.
Just tried it again, got the same issue. That was the original line for my code, the code above was my second attempt at it, when I tried going through the server end.