So i wanted to do a stamina bar and the color should change to red, when the player is exhausted unless they can sprint again.
The thing is the color turns black and i cant change it regards the RGB options
if exhausted and stamina < MaxStamina then
barFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Red color
elseif not running and stamina < MaxStamina then
barFrame.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Red color
else
barFrame.BackgroundColor3 = Color3.fromRGB(0, 255, 255) -- Default color
end```
