Help with making a part tween its size

So as we all know that when you tween a parts size it comes out growing in other directions. How to I make it so it only grows in one direction?

https://gyazo.com/6b77e09a0a8acf4fb3e65653fed65686

1 Like

if you want to make it grow in one direction you have to also tween its position to its starting position to the starting position + (y size of the part/2)

Is there any other way than to also involve another tween?

1 Like

you don’t need to create another tween, you just change the goal of the tween to also include the part’s position

so basically move the parts position. Thats it.

1 Like

but if so it will still move in two directions not one.

1 Like

technically it still moves in two directions but you don’t realise it since the part also moves. i don’t think theres any way to make the part not grow in two directions since it’s how roblox works

im going to check the description on tweening to make sure of that(otherwise I would give up lol).

1 Like

here, this is what i mean. try it out it works

you need to put it under a part

local TweenService = game:GetService("TweenService")

local part = script.Parent
part.Color = Color3.new(1, 0, 0)
part.Anchored = true
part.Parent = game.Workspace

local goal = {}
goal.Size = part.Size + Vector3.new(0,5,0)
goal.Position = part.Position+Vector3.new(0,(goal.Size.Y/2)-part.Size.Y/2,0)

local tweenInfo = TweenInfo.new(5)

local tween = TweenService:Create(part, tweenInfo, goal)

wait(5)

tween:Play()