Humanoid.Died won't fire if any body part of rig is anchored

If you make code like this:

script.Parent.Humanoid.Died:Connect(function()
	print("Died")
end)

and you run it after set any part of rig anchored, the event won’t fire.
Why this happens and is there solution without disanchoring the part?


Seems to work.

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		
		character.Humanoid.Died:Connect(function()--modified your code to say character instead
			print("Died")
		end)
		
	end)
end)

I forgot to mention about anchor, if you anchor the rig, died event wont fire

Is this the player or an npc that is anchored?

NPC that is anchored for some reasons.

Well you probably don’t really need to use a died event on an npc (I may be wrong) since a died event is connected to the characteradded event for the player. An npc needs to be destroyed and re-cloned after it dies afaik.

.Died works on npcs just fine, until anchored.