How to get tween to work!?!?


As you can see the words on not scaling perfectly in sync with the rest of the frame.

The text properties are all scale so it should scale fine
image


The frame properties are also scale and it has a UIAspectRatioConstraint in it, not sure if that has anything to do with it. I don’t think so the text is a descendant of Frame and the text is scale so it should have the same UIAspectRatio as the frame.
image

How to get text to tween in sync with frame?

Show us your script so that we can help.

local tween = TweenService:Create(Frame,TweenInfo.new(
	0.75,
	Enum.EasingStyle.Back,
	Enum.EasingDirection.In,
	0,
	false,
	0.03
	),{
		Size = UDim2.new(0,0,0,0)
	}
)
tween:Play()

You’ll probably need to create a similar tween which works for the text as well, in other words one which plays for the same duration of time and causes the TextLabel size & TextSize to decrease in accordance with the shrinking containing Frame instance.

Doesn’t work. Remember TextLabel is still parented to Frame, so it moves when Frame moves.

Anyway that would be too cumbersome, there can be any amount of UI elements parented to Frame which I’d want to scale properly.

Make sure you use the tween client sided, otherwise it may not work.

local Player = game.Players.LocalPlayer
local PlayerGui = Player.PlayerGui or Player:WaitForChild("PlayerGui")
-- Tween on the client using PlayerGui instead of StarterGui!

If you have the TextScaled property of the text turned on, then that may have something to do with it as it looks like the text is shrinking then resizing to fit the TextBox in the video you provided.

Pretty sure the UiAspectRatioConstraint will only affect the Frame, not the TextBox.

The TextLabel position and size is set to scale, so if there is a UIAspectRatioConstraint in the Frame, it will inherently affect the TextLabel.

TextScaled is set to true so that it scales with the size of the TextLabel which scales with the size of the Frame which gets tweened.

You should add 2 more variables 1 variable holding the tween information and anouther variable holding your goal which would be your size. then for TweenService:Create(Frame,info,goal)
tween:Play()

Please refrain from replying unless you have a solution or idea to help solve the problem.

Uhhh that is suppose to help you? Its the way I use tweenService and it works

Please read the problem I am having that I wrote in the original post.

I have a TextLabel parented to a frame, position and size are both set to scale so it should scale with the frame. When I tween the Frame the TextLabel does not scale in sync with the Frame as you can clearly see in the provided video.