BrickColor Auto Changing to super bright

Hello I have this script to change the window color different colors on night and day and currently during the daytime in-game its changing the brickcolorcode auto to “248, 248, 248”/ Institutional White, but the script is suppose to change it to Fossil BrickColor here is the code

local lighting = game:GetService("Lighting")
while true do
	if lighting.ClockTime >= 18 then
		script.Parent.BrickColor = BrickColor.new(204, 142, 105)
		script.Parent.Material = Enum.Material.Plastic
		script.Parent.Reflectance = 0.9
	elseif lighting.ClockTime >= 6.5 then
		script.Parent.BrickColor = BrickColor.new(159, 161, 172)
		script.Parent.Material = Enum.Material.Neon
		script.Parent.Reflectance = 0
	end
	wait(1)
end

Instead of numbers, do this:

script.Parent.BrickColor = BrickColor.new("Fossil")
1 Like

Seems to work perfect thank you!

2 Likes