so whenever i use BrickColor.new()
it returns a different color than expected sometimes, why? here is part of a script:
1 | script.Parent.BrickColor = BrickColor.new( 255 , 0 , 0 ) -- turns the color red |
2 | wait( 2 ) |
3 | script.Parent.BrickColor = BrickColor.new( 31 , 128 , 29 ) -- turns it to forest green |
when it changes it to the green, it makes it white ._.
Brick color expects argument 1 as a string. Instead use Color3.fromRGB
1 | script.Parent.Color = Color 3. fromRGB( 255 , 0 , 0 ) |
2 | wait( 2 ) |
3 | script.Parent.Color = Color 3. fromRGB( 31 , 128 , 29 ) |