Hey developers, I’m currently experiencing an issue with my day and night script which is causing really weird behavior at certain points during the night. At around clock time 19-20 the lighting of my game seems to go from dim to bright in a single tick.
Bug example:
https://gyazo.com/999799758605b6443c2d901683071a41
Day and Night code:
local timeShift = .01
local waitTime = 1/30
local tweenService = game:GetService("TweenService")
while true do
local toTween = game.Lighting.ClockTime+timeShift
tweenService:Create(game.Lighting,TweenInfo.new(waitTime,Enum.EasingStyle.Quad,Enum.EasingDirection.In),{ClockTime = toTween}):Play()
wait(waitTime)
end
Lighting properties:
I’ve tried everything in my power (at least I think so that’s why I’m here) to resolve this but nothing seems to be doing the trick. I’ve tried deleting all lighting descendants, resetting lighting to default, and even removing all property changes in my day and night module to hopefully even notice a slight change but nothing. It’s super frustrating because I can’t tell if its an engine feature or if I’m using the lighting properties wrong? Any info would help thanks.