Fade tween for gui just not working

So, I am experiencing another weird bug with this game I have been working on literally exactly 2 weeks after the previous weird bug I was experiencing. So pretty much I have 4 tweens, the first two play back to back and then the next two play back to back, and there is a delay that happens between the first and last two that waits until the map is generated.

Code:

local Tween1 = TweenService:Create(Ignore.LoadingScreen, TweenInfo.new(1), {BackgroundTransparency = 0})
local Tween2 = TweenService:Create(Ignore.LoadingScreen.TextLabel, TweenInfo.new(1), {TextTransparency = 0})
Tween1:Play()
Tween2:Play()
ReplicatedStorage.Events.GameStart.OnClientEvent:Wait()
local Tween3 = TweenService:Create(Ignore.LoadingScreen, TweenInfo.new(1), {BackgroundTransparency = 1})
local Tween4 = TweenService:Create(Ignore.LoadingScreen.TextLabel, TweenInfo.new(1), {TextTransparency = 1})
Tween3:Play()
Tween4:Play()

As you can see the first two play, there is a delay, then the next 2 play. However, for some reason the last two just never play no matter what I do?

The problem isn’t caused by the fact that it is setting the BackgroundTransparency / TextTransparency to 1, and it isn’t caused by the delay between them.

Can you verify that the remote event is being received

Don’t know if this is related to the issue, but you forgot to place a comma between the tween info and the property.

Yes the remote event is being recieved, I have tested it

Sorry that was a typo in the post it isn’t in the actual game I’ll fix it real quick.

Do they ever overlap for example tweens 1 and 2 are playing then 2 and 3 get called before 1 and 2 finish?

Actually, I just figured out the problem now, and it does have to do with the tweens overlapping. I have an event that when fired starts all the script. However, the last two tweens play after the same event fires again, but because it fired again now all the tweens are playing all at once I think. Either way thanks for the responses, and man do I just love coding.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.