#Lightning cycle
1 messages · Page 1 of 1 (latest)
you didnt change the actual problem though
TimeOfDay.Day and the other stuff does not exist
have you looked at the documentation for Lighting?
well youve gotten this far so that cant be true
but still have you looked at the documentation
mk cause i can help you through it its just itll help a lot with explaining what properties do exist and how to use them
i mean i should be fine from here
but what were you looking to get from your use of TimeOfDay.Day/etc
well heres an idea
so you see how you have two numbers in your if statements, one as a minimum and one as a maximum?
try just putting those as the start/end presets
also i see youre calling Lighting:ApplyPreset(), this also isnt something that exists
for instance the first if statement, if currentTime >= 0 and currentTime < 7.85 then -- Night, has two numbers: 0 as the start and 7.85 as the end
in the next line youd just be able to plug them in so you have SmoothTransition(0, 7.85, 2)
then you can do the same for the other 3
not sure about a plugin but there are probably modules out there that do day/night cycles