Neither Yellow nor Really Black are colors, there's Really yellow or New Yeller as well as Really black. (The capitalisation is key)
If you're checking the time of day, you may want to put the code into a function
using the Changed
event to check the current TimeOfDay, when it changes.
You could write this as:
1 | game.Lighting.Changed:connect( function () |
2 | if game.Lighting.TimeOfDay > = "18:00:00" then |
3 | script.Parent.BrickColor = BrickColor.new( "Really yellow" ) elseif |
4 | game.Lighting.TimeOfDay > = "6:00:00" then |
5 | script.Parent.BrickColor = BrickColor.new( "Really black" ) |