Why can't I assign custom brick color via code?

You know you can just do:

tile.color = color3.new(Color vector 3)

Which will change the color, and also If you want to do it your way u have to do

Enum.BrickColor.new(whatever)

Or something like that.