I’m making an assist system that gives a percentage of a reward to a player depending on how much damage they have done. I want to know how I can add a table that has the player name and then the amount of damage they have done and add it to another existing table.
Let’s say there’s a signal that is detecting the damage outputs. Once you have that detected, usually you would know who dealt damage. It looks like you can do this:
The main table holds all players indicating how much damage was dealt to them
The subtables will contain keys related to attackers and values to their respective damage
I’m a little tired, I’ll check back tomorrow if you still haven’t figured it out.