i was trying to make a healthbar so i made a red scrollbar and then a green one at the same location that goes down when the player loses health, the only problem is that the red one is on top
heres the script:
function OnGUI(){
GUI.color = Color.red;
GUI.HorizontalScrollbar(Rect (480,40,200,20), 0, 100,0, 100);
GUI.color = Color.red;
GUI.HorizontalScrollbar(Rect (20,40,200,20), 0, 100,0, 100);
}