I'm sorry for not coming on here for a long time, I've been busy. When you either fall in a pit, or lose all health, you lose a life. But I solved the problem. Turns out that when the player fell in a pit, it lost life due to it functioning with a function that decreases health. So everytime it fell it must have decreased 2 lives instead of one. I then fixed it using a different function that didn't rely on the other one. I realized this when I intentionally made the player get die by the enemy. It only lost one life. :crazy: A lot of words. :laugh: