Hello, I am attempting to make a dummy change it's color according to it's health. I'm using the Color3.fromRGB system and I don't know how to do the "Red" part. What I plan is to have the Red value go up if the health goes down, and have the Green value go down if the health goes down. Here's my code.
local function CheckHealth() Color = Color3.fromRGB(0,2.55*Hum.Health,0) end
I'm still stuck on the Red part, I know how to do the Green but I just can't find out what logic to use. If someone could help, it'd be great! Thanks!
Nevermind, I was dumb enough to not realize that there's something called Color3.new() that can take values between 1-0 which is a lot easier considering that the health ranges from 100 to 0.