Ok so I followed a tutorial to make health bar. The health bar is working and goes down when the player gets hit.
I also made it so that when its 0 or bellow it will go to the "Game over" screen, but for some resason it does switch to the "Game over" screen. Please help. Here is a picture of the events. I just crossed over the health bar parts to make it easier to see.
ibb.co/mRtgN7
Thanks!