Question About Tables

Hello! I was wondering how to give a player cash in the table. Players get removed from the table and only 1 will be left, so I need to make them get cash. Not sure how as it’s a random player every time.

I’m really confused by the question you’re asking. Do you want to know how to return a key:value pair with the key being cash? Do you use just tables or external values? I assume only tables as per your question, but do you then handle it through a module or with bindableFuncs?

What I’m trying to say is, can you please go into more detail.

I just need to get the player by them being in the table. As it’s a game system, they would be the only one left. I need to get their username by them being in the table. Sorry, I suck at explaining things.

So you’ve got a playerTable which is placed within a table? Could you not just do something like parentTable[playerReference][“Currency”]? If this isn’t the answer you’ll have to go into more depth as your question is very confusing.

Oops, got the answer actually. Sorry.