What is the most effective way to do a stamina bar this way

so ive tested it for a bit and uh its random like each time i play the order they stop coloring its randomized so yeah weird enough

Very weird, anyway I probably listed the problems that could cause this, Im at a loss, anyway, I think you can find a solution to that, anyway good luck on your project!

Yeah ill eventually find a solution so far tysm man