What I'm trying to do is when the MinutesAfterMidnight is between 360 and 1140 the material is Plastic, but when it is between 1140 and 360 it is neon.
game.Lighting.LightingChanged:connect(function()
local tam = game.Lighting:GetMinutesAfterMidnight()
if tam >= 360 and tam <= 1140 then -- If it's between 06:00:00 and 19:00:00
script.Parent.PointLight.Enabled = false
script.Parent.Material = Enum.Material.Plastic
else -- If it's between 19:00:00 and 06:00:00
script.Parent.PointLight.Enabled = true
script.Parent.Material = Enum.Material.Neon
end
end)
