Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
BlagEz 26
5 years ago

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

Log in to vote
0
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
5 years ago

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.

0
Why is it called creator though User#19524 175 — 5y
0
Idk why they called it that Rare_tendo 3000 — 5y
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? BlagEz 26 — 5y
0
Died isn't a function - it's an event. Anyways, you're right Rare_tendo 3000 — 5y
Ad

Answer this question