Custom Character can't die

I’ve implemented a Custom Character Model and I can’t seem to make the character die. When I reset my character, the oof sound plays and the humanoid health = 0 but none of these scripts seem to work:

player.Character.Humanoid.Died:Connect(function()
    print("u died")
end)
while true do
    if player.Character.Humanoid.Health = 0 then
      print("u died")
    end
    wait()
end)

Here is my custom character script:

ReplicatedStorage.CreateVirusHumanoid.OnServerEvent:Connect(function(player)
	local oldHumanoid = game.ServerStorage.Virus
	local newHumanoid = oldHumanoid:Clone()
	newHumanoid.Name = player.Name
	player.Character = newHumanoid
	newHumanoid.Parent = workspace

end)

My custom character does not have a head or torso, it DOES have humanoidroot part, idk if that helps or not. EDIT: Ik using while loops doesn’t help with memory management but that also does not work either.

could you send me a picture of the personalized character?

You would then have to create a new custom character and reset the character. Maybe use LoadCharacter under Player if you want it to return to the default ROBLOX appearance, but if you want it to still be a virus, then once the virus is dead, wait a few seconds and then delete the old one and create a new clone from your storage.