Color3 not working?

I am in studio and when I try to run this on the command line:
####game.Workspace.Part.BrickColor = BrickColor.new(Color3.new(160, 202, 240)),#

I am given (1, 1, 1) instead.

Surprisingly, (160, 202, 1) works fine, giving a colour other than white, but as soon as I input the 3rd colour, it just turns white?

Is there something I am doing wrong?

###game.Workspace.Part.BrickColor = BrickColor.new(Color3.fromRGB(160, 202, 240))###
seems to work for me. I probably did the other one wrong.

Color3.new(r,g,b) expects r,g,b to be numbers between 0 and 1, instead of numbers between 0 and 255 like Color.fromRGB.

2 Likes

That was my mistake, thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.