Tweening Frames - Help

Just a quick question from a newer coder:

If I were to tween a given frame in a gui, would it also shrink the text labels inside of it?
I just want to know in case i’m wasting my efforts on something that wont work :stuck_out_tongue:

If not, what is the easiest way to tween everything in a frame at once? I want to shrink and position it somewhere and Idk if individually tweening them is the best way or not

Thanks for your help

-Revelted

Depends what you mean by shrink the text labels inside it.

Do you mean their physical size? Yes if you used scale. Do you mean their font size? Yes if you use TextScaled, no otherwise.

Just the UDim2 size, so yea the physical size.

So It would work if i just tween the frame and nothing else?

Yep. Everything’s size will scale with it if you change its parent as long as you used Scale when making the size and not Offset.

It didn’t seen to tween the size of the text labels, what did I do wrong?

Plr.PlayerGui:WaitForChild('Intro').Frame:TweenPosition(UDim2.new(0,500,0,500),'Out','Bounce',2)
	wait(3)
	Plr.PlayerGui.Intro.Frame:TweenSizeAndPosition(UDim2.new(0.1,0,0.17,0),UDim2.new(0,50,0,50),'Out','Linear',1)

What are the sizes of your text labels inside the frame?

{0, 423},{0, 200} and {0, 321},{0, 130} , do i need to change those to scale as well?

Yes. Offset is exact pixels, Scale is relative to the size of its parent. As a rule of thumb, only use Offset when you really have to. That way, you don’t cause visual incompatibilities with mobile, and you don’t stumble upon gotchas like you’re having now.

Aye it worked, thanks a lot man!

1 Like

Should I use offset for position? or scale again

Scale. Try using the emulator in the Test tab to see how your UIs will look on other platforms to make sure it looks fine.

ok, but when i use scale, will it appear in the same spot as my screen as on everyone elses screen? Sorry for the extra question >.< i just have troubles with guis

It should, yes. Remember to use the emulator at the top to see different screen sizes to make sure.

Ok, ty