--TimeSensor--

TurnOn = 19
TurnOff = 7
On = false
while wait(10) do
    if game.Lighting.ClockTime >= TurnOn then
        if not On then
            On = true
            script.Parent.Flicker.On.Value = true
        end
    elseif game.Lighting.ClockTime >= TurnOff then
        if On then
            On = false
            script.Parent.Flicker.On.Value = false
        end
    end
end
 