Is it possible to make something TweenSize() the other way?

Hey developers, I’ve been trying to make a loading screen which slowly becomes smaller, but when I try and TweenSize() one of the frames it just goes the other way, is there anyway to change its director?

Video

wait(2)

script.Parent.FrameA:TweenSize(UDim2.new(0,5,0,10), 'In', 'Linear', 10)
script.Parent.FrameB:TweenSize(UDim2.new(0,5,0,10), 'In', 'Linear', 10)

Any help, suggestions or answers would be greatly appreciated,
Thanks.

2 Likes

Could you possibly show a demonstration of what you’ve got so far; so we know what we’re dealing with.

1 Like

Click the video.That shows everything.

1 Like

I can’t tell what you are trying to achieve. A decent illustration will greatly help on what you want to achieve and that it helps us understand what the problem is.

1 Like

Ah, right I’ll tell you know, forgot the add that,

1 Like

Set the AnchorPoint of the frame to 1, 0.

This means that the size is changed relative to the anchorpoint, which to the right side of the X axis. You might need to reposition the starting position of frame when changing anchorpoints.

Edit: I’ve seen OP wants to make it so the left bar shrinks from left to right, while the right bar shrinks from right to left. Changing the anchorpoint of the left bar will achieve this.

4 Likes

I want the frame on the left to TweenSize() the other way, so instead of going out it meets in the middle with the other frame, example:

The left and right frame slowly tween together until you can see them, the left frame tweens to the right and the right to the left.