I have this portion of my script:
if health <= 30 then
script.Parent.BackgroundColor3 = Color3.new(255,0,0)
script.Parent.Shadow.BackgroundColor3 = Color3.new(223,0,0)
end
It changes the color of the Script.Parent wich is a bar, but when trying to change the color of the script.Parent.Shadow it just changes the color to (0,25623,0).
Both are frames and were copy pasted
Why is this happening?
Can someone help me?
Thanks!

2 comments
Use Color3.fromRGB() . With Color3.new(), the arguments have to be between 0 and 1, so all values are multiplied by 255. The solution is Color3.fromRGB(255,0,0)
Thank you! It worked, I don't know why not with the first one but.. Thanks! :D