local TS = game:GetService("TweenService") -- Gets the service
local TI = TweenInfo.new(Time, EasingStyle, EasingDirection) -- Easing Information
local Tween = TS:Create(TextLabel, TI, {Size = SizeHere}) -- Crerates the tween
Tween:Play() -- Plays the tween
Tween.Completed:Wait() -- Waits for the tween to finish
TextLabel.BackgroundTransparency = 1 -- Sets the transparency to 1
I’m guessing you were using TweenSize, which you shouldn’t because it is deprecated(no more updates coming to it).
gui_object:TweenPosition(
UDim2.new(), -- go back to corner
Enum.EasingDirection.In, -- direction
Enum.EasingStyle.Sine, -- style
2, -- how long it lasts
true, -- override
function()
print("tween completed/interrupted")
end
)