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

How do I find out who killed a humanoid?

I have a humanoid (non-player) that needs to die occasionally. How can I find out who killed/damaged it?

1 answer

✓ Accepted answer

You can place a value in the humanoid like (LastHit) and then whenever a weapon hits the player, the weapon changes the value to that of the player holding the weapon.

2 comments

1

Fitting detail for the question asked.

0

Thanks! I suspected that was it but still had to ask.

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