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")