Hello! I want the easing direction to make it so that “night” is shorter than “day”. However, it is being really annoying and i dont actually know what easing direction does too.
This graph represents what i want:
And this graph represents what i think is happening:
And here is what is happening:
I have tried switching out easing directions and searching on the developer hub for information, but none have helped.
This is my script:
local twinfo = TweenInfo.new(9.9,Enum.EasingStyle.Exponential, Enum.EasingDirection.In, 0, false)
local twinfo2 = TweenInfo.new(9.9,Enum.EasingStyle.Exponential, Enum.EasingDirection.Out, 0, false)
local val = true
while wait(10) do
if val then
val = false
game.TweenService:Create(game.Lighting, twinfo, {ClockTime = 2}):Play()
print("Playing to 2")
elseif not val then
val = true
game.TweenService:Create(game.Lighting, twinfo, {ClockTime = 14}):Play()
print("Playing to 14")
end
end