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?
✓ ANSWER ACCEPTED
How could I get the person who I killed or the person who killed me?
1 answer
✓ Accepted answer
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Why is it called creator though
Idk why they called it that
Ok, lemme get this strait. When someone takes damage a object Value is placed inside the humanoid. Using this object you can figure out who killed you. And using the function Died you can figure out if they died? is that correct?
Died isn't a function - it's an event. Anyways, you're right