For some reason the first equal sign shows up as an error in the script. The script isn't working, either. What am I doing wrong?
if game.Lighting.TimeOfDay = "18:00:00" then
script.Parent.BrickColor = BrickColor.new("Really yellow") elseif
game.Lighting.TimeOfDay = "6:00:00" then
script.Parent.BrickColor = BrickColor.new("Really black")
end

3 comments
Thanks, the error went away, but the brick still isnt changing color when it needs to. I made TimeOfDay == "18:00:00", as well as "6:00:00".
I edited my answer
I know why! Really yellow isn't a roblox brick color, use "New Yeller" or "Bright yellow" (Yeah I know, roblox has weird colors)