Hey! I’ve been having trouble recently where all of my tweens with transparency just don’t work. I do the tweening correctly, but it always just cuts to the goal. Is there something wrong with my script?
local TweenService = game:GetService("TweenService")
local newTweenInfo = TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
local newTween = TweenService:Create(script.Parent:WaitForChild("MainFrame"), newTweenInfo, {Transparency = 1})
local MainFrame = script.Parent:WaitForChild("MainFrame")
local LoadingLabel = script.Parent:WaitForChild("MainFrame"):WaitForChild("TextLabel")
local function Tween(tweenPlayed:Tween)
tweenPlayed:Play()
print("tween played")
end
for i = 1, 3, 1 do
for i = 1, 3, 1 do
LoadingLabel.Text = LoadingLabel.Text .. "."
task.wait(0.75)
end
LoadingLabel.Text = "Loading"
end
Tween(newTween)
MainFrame.Visible = false
print("mainframe is invisible")
Thanks in advance!