--SeregaTopYTReal2
--Put the "died" sound to npc's head


local NPC = script.Parent
local Head = NPC.Head
local Humanoid
for i,v in pairs(NPC:GetChildren()) do 
	if v:IsA('Humanoid') then 
		Humanoid = v 
	end 
end

if Humanoid then
	Humanoid.Died:Connect(function()
		wait(0.0001)
		Head:FindFirstChild("died"):Play()
	end)
else
	warn('Cannot find Humanoid in DeathSound Script!')
end
