Can someone help me edit this script to change to Neon when it reaches a certain time, but changes back to SmoothPlastic when it reaches another certain time?
local Lighting = game:GetService("Lighting");
-- Our while loop
while true do
-- Checking if the time is 18 or more.
if Lighting.ClockTime >= 18 then
-- Let's change the lamp's material to Neon!
script.Parent.BrickColor = BrickColor.new("Pink")
else
-- Change it to SmoothPlastic if it isn't late :D
script.Parent.Material = Enum.Material.SmoothPlastic;
end
wait(1) -- Waits a second before continuing
end

1 comment
oops forget about the brickcolor