I want my frame to fade to a solid colour, then wait like 2-3 seconds, then fade back, however I don’t know how to add a delay to the repeat. I would have thought DelayTime would be for the reverse, but apparently not
local FadeOut = TweenInfo.new(
0.5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
true
)
local Tween = TweenService:Create(Frame, FadeOut, {BackgroundTransparency = 0}):Play()
Tried it already, doesn’t work. It delays the tween, not the reverse of the tween. I want the tween to happen, wait a bit, then tween back using reverse
Similar to what @metaindex said, listening for when the tween is completed then firing the tween again manually in reverse after waiting is probably the one of the best ways to achieve this as the Tween Service does have any way of doing this(as far as i know)
local TWI = {-----} ---TweenInfo
local function ReverseTween(Tween, ReverseProperty, DelayTime)
Tween.Completed:Connect(function()
Tweenproperty = ReverseProperty
Wait(DelayTime) ---or add this to the actual tween info
local ReversedTween = Tweenservice:Create(script.Parent, FadeOut, Tweenproperty)
ReversedTween:Play()
return
end)
end
NewTween:Play()
ReverseTween(NewTween, {BackgroundTransparency = 1}, 3)