|
| 01 Aug 2016 10:49 PM |
-- Made by killaman333
--local NiteTimeHours = {20, 21, 22, 23 ,24, 1, 2, 3, 0} -- Darkest hours of the night
while true do local lighting = game:GetService("Lighting") if lighting.TimeOfDay >0 and lighting.TimeOfDay <4 or lighting.TimeOfDay > 20 and--line6 lighting.TimeOfDay <24 then lighting.TimeOfDay.FogEnd = 50 else lighting.TimeOfDay.FogEnd = 99*99*99 end wait(0.0001) end
OUTPUT: 23:44:12.884 - Workspace.NightAndDay.Script:6: attempt to compare number with string 23:44:12.885 - Stack Begin 23:44:12.886 - Script 'Workspace.NightAndDay.Script', Line 6 23:44:12.887 - Stack End |
|
|
| Report Abuse |
|
|
| 01 Aug 2016 10:51 PM |
| TimeOfDay is a string, in the format "Hours:Minutes:Seconds" |
|
|
| Report Abuse |
|