I tried to tween the size of a part to make it grow one way, but it grows on both ways, what do I do?

script:

local TweenService = game:GetService("TweenService")

local part = script.Parent

local goal = {}
goal.Color = Color3.new(0, 1, 0)
goal.Size = Vector3.new(1,8,1)

local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, true,0)

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

wait(20)
print("tweenStarted")
tween:Play()

3 comments

0

Set true to false within the TweenInfo. "true" tells it to reverse the tween.

0

I want it to grow one way only, however it grows on both ways, even if I set it to false it still grows both ways.

0

Size will grow both ways no matter what. If you want a visualization of it growing in only one direction, you need to manipulate the part's Position.