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?
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?
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.
but if so it will still move in two directions not one.
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).
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()