This video shows the difference between dying in a state of goodness versus dying in a state of committing an evil act. Masha'allah you can see that one dead person is pointing his right index finger indicating that the testimony of faith was announced at death. "ashadu in La ilaha ila Allah wa ashadu anna Muhammadur-Rasoolullah" I testify that there is no deity worthy of worship except Allah and I testify that Muhammad is His Messenger.
The other person is shown dying while being drunk. We ask Allah to protect us from achieving an evil ending and we ask Allah to bless us with a good ending. Ameen.