When changing the brick color of a part, you have to do something like this:
part.BrickColor = BrickColor.new("Really Blue")
So an easy fix to your script is to change the "script.Parent.BrickColor.new =" to
script.Parent.BrickColor = BrickColor.new("Color")
Furthermore, brickcolors are case-sensitive. You wrote "Really Blue". This has to be written as "Really blue" - with lowercase "b". Same with "Deep Orange" --> "Deep orange"
1 | if game.Lighting.ClockTime = = ( "6.12" ) then |
2 | script.parent.BrickColor = BrickColor.new( "Really blue" ) |
5 | if game.Lighting.TimeOfDay = = ( "06:06:00" ) then |
6 | script.parent.BrickColor = BrickColor.new( "Deep orange" ) |
But this check only runs once, which means you need some kind of loop to constantly check the ClockTime and TimeOfDay. You could use :GetPropertyChangedSignal() to do a check every time "TimeOfDay" or "ClockTime" changes, or you could make a while loop to constantly check these properties.
I believe that's all. If you got any questions or suggestions on improvements I can make, feel free to comment on this answer. (:
Happy scripting!
~Sethex, aka. TheWaterFoox