what i am trying to do is every time a player hits the use key on the entity it changes to a different color.
but for some reason it runs through the whole entire code and picks the color on the bottom of the code and wont change. it just stays with the color red .

what i was trying to do was since i have the entity to Initialize the color white was to let it go through the code and let it pick the color starting at the bottom on up.
white to red then red to green then green to blue then blue to white