Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make this tween size and centered while it tweens?

Why wont this work?

script.Parent.ShopFrame:TweenSizeAndPosition(UDim2.new(0, 1000, 0, 1000), "Out", Enum.EasingStyle.Back, 1)

1 comment

1

If my answer was correct, please accept it.

1 answer

✓ Accepted answer

You need two UDim2.news in order to use TweenSizeAndPosition.

One being for Size, then other Position. (That's in order)

script.Parent.ShopFrame:TweenSizeAndPosition(UDim2.new(Size Here), UDim2.new(Position Here), 'Out',  'Back', 1)

Also

I recommend using Offset.

Offset is the first set of values in a position/size.

I.E. If you were given the position 0.1, 100, 0.1, 100. The X-Offset is 0.1 and the Y-Offset is 0.1

Using offset is better since it will appear on the same area on ALL screens. If you use 0, 1000, 0, 1000 then that will show on different areas for every screen.

This discussion is preserved as it was. New answers, comments, and votes are closed.