local value = script.Parent.Parent.Parent.Rbox
local Container = script.Parent.Parent
Container.BackgroundColor3 = Color3.new(255, 255-value.Text, 255-value.Text)
Thats the script Im working with, it is during a loop.
local value is a textbox in a gui
value.Text is always a number between 0 & 255
However, when running this the R or first value always becomes 65025 for some reason, and the following 2 values after that range between that and 0, when the g & b color bits finally do get to 0 I get a solid bright red with (65025, 0, 0) but thats it. I'm SUPER confused on this because whenever i do
print Color3.new(255, 255-value.Text, 255-value.Text)
during this script, it comes up with exactly what it should be which makes no since..
completely at a loss with this one. Not sure why its making these random huge numbers for the rgb leaving the color white, but when printed out its the exact right rgb..

2 comments
try using Color3.fromRGB instead of Color3.new ig
I- you are a life savor, ill accept if you make that an answer. I had no clue that existed