Part's color being different from what I saw in properties

I was working on my game and noticed a really weird bug.
I wanted to make a part’s color change.

I wanted it to be white so I went in a part’s properties and changed it to Institutional White and got the Color3 value of the color(248, 248, 248).
I ran the code and something unexpected happened, the part has turned black. and the color3 value was (8, 8, 8).

I was confused and tried testing some other things and searching around DevForum.
I couldn’t find anything so I’m writing this.

Here’s the code, its really simple and I’m struggling to get the color to work.

script.Parent.Color = Color3.new(248, 248, 248)

Try this:

script.Parent.Color = Color3.fromRGB(248, 248, 248)

1 Like

wow it actually worked thx so much

Color3.new and Color.fromRGB does the same thing, but used differently.
Example of Color3.new would be Color3.new(1, 1, 1) for white than Color.fromRGB would be Color.fromRGB(255, 255, 255)

3 Likes

Yeah but I think that normal RGB color system is more simple to understand/manipulate.

2 Likes