Try using physics instead, humanoids generally use break joints on death which causes the dying issue: