I have this very simple line of code, it is supposed to change my health bar's color from Hue Saturation and Value, but it just turns the bar's color to red. I used print to print the color, and here is what the output told me 255, -49725, -2.97079e+007 You aren't supposed to have negatives or decimals in Color3 values, and I have no idea why that is the color. Please help me!
script.Parent.BackgroundColor3 = Color3.fromHSV(math.floor(health*100/maxHealth),255,255)

2 comments
color3 only goes from 0 to 1 so try using "Color3.fromRGB" maybe?
fixed it by removing the * 100 and changing 255s to 1s