For some reason the colors in a frame are changed to colors that don't even exist

So I made a frame that changed its original color (43,43,43) to black (0,0,0) but when it votes for its original color it stays the same color (10965,10965,10965) having putting (43,43,43).
This looks like a bug but I’ll show you the lines related to this to see if I really screwed up:

The orignal color: image

The lines that change the color of the frame to black: image

The lines that return to the original color of the frame: image

Final result:final

Note: Debug Dictionary corresponds to the locations of the respective objects (which are written in another module script)

Is that a mistake?

You need to use

Color3.fromRGB(R,G,B)

Pretty sure Color3.new only takes values with 0 and 1 for each parameter.

1 Like

I forgot I had to do it like this, thanks.

1 Like