Sorry if i keep on asking about the same script, but i finally solved the boolean problem. But this time, this doesn't show an error. I don't know what's happening here, but nothing is happening, the light doesn't glow.
local lighting = game:GetService("Lighting")
local clocktime = lighting:GetMinutesAfterMidnight()
local light = script.Parent
local bulb = script.Parent.Parent
local ntime = 1080
local offtime = 360
print(clocktime)
while (clocktime>=ntime or clocktime<=offtime) do
light.Enabled = true
bulb.Material = ("Neon")
end

3 comments
I actually did that. It still doesn't work. I've done everything to function that...
Did you try removing the () for the material on line 13?
I think the () is necessary for line 13. But the thing is, i attempted to debug by printing the "clocktime" whenever that clocktime is greater or less than "ntime" and "offtime" respectively.