So, I’m making a personal Usage % screen and I am attempting to gradient between red & green values however it has proven to be quite the challenge without ColorSequence…
Even then. I’ve been searching the forums for quite a while and haven’t found anything regarding my issue. I believe it’s not something that can be solved with ColorSequence either.
So here’s what’s going on.
I have a NumValue called Usage, it can go from 0 until 100, so far so good. Time to bind that to my Color3 value, and here’s where it gets complicated.
While Usage is 0, Color3 = (0,255,0) → if Usage is 50, Color3 = (255,255,0) → and if Usage is 100 then Color3 = (255,0,0).
Basically, when Usage increases up to 50, the Color3.R value increases too. When Usage goes above 50, Color3.G value decreases.
Here’s the template;
Usage.Value == 0 -> Color3.fromRGB(0,255,0)
Usage.Value == 50 -> Color3.fromRGB(255,255,0)
Usage.Value == 100 -> Color3.fromRGB(255,0,0)
I’m trying to transition between those 3 states and I can’t really find a way how to make it work…
Unfortunately I am notorious for making subjects more complicated than they should be so I hope the template can somewhat explain what I’m trying to say.
I’m trying to change the BackgroundColor of a frame depending on % of a NumValue.