How do i tween a part only in one direction?

I wanna make a part grow in one face or direction
like this
start = X
X=========
instead of
========X=======
how do i do this?

Let’s say you plan on growing along the X Axis but want it to remain in the same position.
There’s a simple way to compensate for this.

Simply divide the Size on whatever Axis by 2

local offset = Vector3.new(PART.Size.X / 2,0,0)--this is half of the parts size only on the X
PART.Position = PART.Position + offset --add half of the size to the X to get that offset.

So in your scenario you would simply want to add the new offset position into your Tween as well.

Hope this helps. If you have any questions feel free to ask.

3 Likes

hello, sorry if this is a dumb question but it’s only moving in one direciton its not increasing in size?

I’m not sure what you mean, can you show me your code / what you’re trying to do? Are you referring to your tween?

nevermind, i got it to work thank you

2 Likes

https://gyazo.com/8c5fa3c478689bded98b394b70e34e7c