Multiple tweens not playing

I am fading 3 elemets out when game loads. Please note the loading part works and it tweens out only the first tween I have. Any help would be great. Thanks.

TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")


local object = script.Parent.Parent.Parent["Loading Screen"]
local object1 = script.Parent.Parent.Logo
local object2 = script.Parent.Parent.Rotating


local targetTransparency = 1

local tweenInfo = TweenInfo.new(0.5)

local tween = TweenService:Create(object, tweenInfo, {BackgroundTransparency = targetTransparency})
local tween1 = TweenService:Create(object1, tweenInfo, {BackgroundTransparency = targetTransparency})
local tween2 = TweenService:Create(object2, tweenInfo, {BackgroundTransparency = targetTransparency})
game.ReplicatedFirst:RemoveDefaultLoadingScreen()

wait(5)  -- Force screen to appear for a minimum number of seconds
print("minimum")
if not game:IsLoaded() then
	game.Loaded:Wait()
end
tween:Play()
tween1:Play()
tween2:Play()
print("loaded")

Just by looking at your script, the tweens should be tweening. I even double-checked by testing it in studio and your script works fine.

If no errors are appearing in the output, then I think your issue is either you are tweening the wrong properties or the wrong instance.

What I mean is, for example, “object1” you have labeled as “Logo.” Is that an ImageLabel? Then you’d have to tween the ImageTransparency, and so on.

1 Like

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