Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How could I get the person who I killed or the person who killed me?

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?

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.

4 comments

0

Why is it called creator though

0

Idk why they called it that

0

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?

0

Died isn't a function - it's an event. Anyways, you're right

This discussion is preserved as it was. New answers, comments, and votes are closed.