TweenSize problem - Properly written, but uncontrollably shakes

Basically, it creates some random uncontrolled shaking. I don’t know what it’s from.

Code:

local UI = game.Players.LocalPlayer.PlayerGui.ScreenGui.ThemeText
local Players = game:GetService("Players")
UI.Size = UDim2.new(0,0,0,0)
game.Workspace.RunwaySystem.StartRound.OnClientEvent:Connect(function(List,Theme)
	if table.find(List,Players.LocalPlayer) then
		UI.Text = "The current Theme is..."
		UI:TweenSize(UDim2.new(0.483, 0,0.445, 0),"Out","Quart",2)
		wait(2)
		UI.Size = UDim2.new(0,0,0,0)
		UI.Text = Theme.."!"
		UI:TweenSize(UDim2.new(0.483, 0,0.445, 0),"Out","Quart",2)
		wait(2)
		UI:TweenSize(UDim2.new(0, 0, 0, 0),"In","Quart",2)
	end
end)

Result:

Inside of the instance:
image

1 Like

Im not entirely sure about this but have you tried turning scaled text off?

1 Like

I have and it does the same thing.

Resolved: I just created the tween using TweenService instead. Kinda surprised it would be that buggy without it tho; it would usually work.

1 Like

The error may occur because of the UIAspectRatioConstraint interfering with the text label size(during the tween).

1 Like

Yeah, you were right about that too; I had to put it inside of a frame and have the label constraintless after.