younite
(younite)
#1
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?
younite
(younite)
#2
###game.Workspace.Part.BrickColor = BrickColor.new(Color3.fromRGB(160, 202, 240))###
seems to work for me. I probably did the other one wrong.
Merely
(Merely)
#3
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
younite
(younite)
#4
That was my mistake, thank you.
system
(system)
Closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.