TweenSize causing issues

Hey there! I don’t know if this is an engine bug or my coding fault. But all lines except line 6 are running normally. TweenSize is not changing the size for some reason.

The size remains UDim2.new(0,0,0,0) for some reason.

Thanks for your help.

game.ReplicatedStorage.SendSuccess_Event.OnClientEvent:Connect(function(MESG)

local Clone = script.Text_GUI:Clone()

Clone.Parent = game.Players.LocalPlayer.PlayerGui

Clone.TextLabel.Size = UDim2.new(0,0,0,0)

Clone.TextLabel.Text = MESG

Clone.TextLabel:TweenSize(UDim2.new(script.Text_GUI.TextLabel.Size), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, true)

wait(4)

Clone.TextLabel:TweenSize(UDim2.new(0,0,0,0))

wait(1)

Clone:Destroy()

end)```

Adding onto this, I also tried a pcall, no errors.

Try this instead. Before you were passing in a type UDim2 into another UDim2’s constructor which isn’t necessary.

Clone.TextLabel:TweenSize(script.Text_GUI.TextLabel.Size, Enum.EasingDirection.Out, Enum.EasingStyle.Sine, true)

Same issue occurring. I don’t know what’s up but yeah.

Try this instead. If this works then it means we are supposed to construct a new UDim2 object instead of passing one in.

Clone.TextLabel:TweenSize(UDim2.fromOffset(script.Text_GUI.TextLabel.AbsoluteSize.X,script.Text_GUI.TextLabel.AbsoluteSize.Y), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, true)