How to initialize this calculation?

Hi Developers! :wave:

Today I have a tricky question (atleast for me) for you. So I have a kill assist system, which awards all players dealt any amount of damage different amount of points. I’ve made all the “getting damage and player data” thing, but I’m struggling to make that calculation to award the player with most damage greater rewards.

The structure of these tags:

Humanoid is the Parent -> first tag `(creator)` which represents the player who dealt some damage -> another tag `(damage)` that represents the amount of damage. Take note that there is going to be more than 2

Main problems right now:

How do I get damage tags values from the creator table?
How to compare these values and find one who did the most damage and find these who did less damage, because all of them will get a reward?

I would appreciate any help provided :blush:! Also if you have some additional questions. please let me know!

1 Like

so its kind of hard to understand what your trying to say here with the tags and stuff but from what i can tell it seems like when you say tag you aren’t actually referring to the built in tag future roblox has that allows you to tag objects using collection service but rather you are just refering to an instance of some kind, maybe a value object? also when you put an arrow (->) im asuming this means that the object after the arrow is parented under the object before the arrow, is that right? just trying to make sure i fully understand your problem first.

1 Like

I’m really sorry for the random solution and late reply, but what I’ve been trying to achieve is just impossible!