Why does my tween instantly make it transparent?

My tween here, instead of fading the transparency over 5.5 seconds, it happens instantly? What am I doing wrong here

local TweenInfo2 = TweenInfo.new(5.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) 

local returnTween = game:GetService("TweenService"):Create(killScore, TweenInfo2, {Size = originalSize, Transparency = 1})
returnTween:Play()

There basically is no task.wait() or any delay function added before Tween instance, Code runs after game is initialized so it runs and trick you into thinking tween instantly plays after player is spawned

This is how it’s supposed to be

local TweenInfo2 = TweenInfo.new(5.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) 

local returnTween = game:GetService("TweenService"):Create(killScore, TweenInfo2, {Size = originalSize, Transparency = 1})
task.wait(2)
returnTween:Play()
1 Like

Have you tried changing your EasingStyle, and keeping it linear?
Have you tried defining all the TweenInfo values?
Have you checked that your part’s transparency is set to 0 as default?

I’m uncertain what you want the task.wait() there for, but it’s not needed

1 Like

i thought of that before but the only way i know was to make Preload method which is kinda long process to do (I’m on mobile currently so all i can say is using it)

Never stumbled upon the issue myself, but if it helps for OP, great

I think you misunderstood what Transparency means. It’s not a valid property for TextLabel and will not make any changes.
Instead, use the following properties:
local returnTween = game:GetService(“TweenService”):Create(killScore, TweenInfo2, {
Size = originalSize,
TextTransparency = 1,
TextStrokeTransparency = 1
})

TextTransparency is the alpha of the text.
TextStrokeTransparency is the alpha of the stroke color.

Ah yes that must be the issue ty

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