I have a script located in my StarterGui and this function in the script is not telling if the npc humanoid is at 0.
local player = script.Parent.Parent
local leaderboard = player:WaitForChild("leaderstats")
local currency1 = leaderboard:WaitForChild("Gold")
function onDied()
print("Dead")
currency1.Value = currency1.Value + 100
end
script.Parent.Parent.Workspace.TutPrac.Viking.Humanoid.Died:connect(onDied)
thanks!

2 comments
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Died
To note, this would only work once: When the player's character (re)spawns. (This code, I mean)