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

Get the player who killed an NPC?

Asked by 6 years ago

Is there any way to get the player who killed an NPC without adding any modifications to the weapon scripts? Like get the player using a script attached to the NPC or something like that?

0
Depending on what kind of weapons you're using, there's a pretty standard system of there being a value titled "creator" in the humanoid of the dead character. Which you can read when they die. But it all depends on weather or not the weapons you're using support it. jd12048 7 — 6y

Answer this question