I've been doing my research on how I could get the person who killed you or killed me. I understand that it has to do with Object Values, but i don't quite understand. Could someone give me a little bit more information on this?
A way how Roblox does this with their gears is when another humanoid gets hit by the gear or an object from the gear, they create an Object value called 'creator' with its value as the player who hit the humanoid. If the humanoid has died, you can check if the creator tag exists and see what player killed the humanoid.
You could make something like into your own system.