i am trying to detect the killer when player kill an npc, my code is working when i kill the npc whith sword but if i kill the npc using a gun he does not find the killer why ?
this script in the npc:
humaniod.Died:Connect(function(health)
local killer = humaniod.creator.Value
print(killer.Value)
end)

3 comments
Can you post the sword and gun script?
the sword and the gun is from the tool box (its just for testing)
Just use the tag method