I am like real confused on how to make this tween go upwards without having to position it
can someone help?
local TweenService = game:GetService("TweenService")
local Wood = script.Parent.Wood
local Tweeninfo = TweenInfo.new(
10,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out
)
local goal = {}
goal.Size = Vector3.new(1.637, 10.568, 1.43)
goal.Position = Vector3.new(20.675, 5.205, -31.125)
local Tween = TweenService:Create(Wood, Tweeninfo, goal)
Tween.Completed:Connect(function()
script.CanGrab.Parent = script.Parent.Wood
script.Health.Parent = script.Parent.Wood
local Leaf = script.Parent.Leaf
local Tweeninfo0 = TweenInfo.new(
2,
Enum.EasingStyle.Cubic,
Enum.EasingDirection.Out
)
local goal0 = {}
goal0.Size = Vector3.new(7.067, 2.286, 7.174)
goal0.Position = Vector3.new(20.52, 10.61, -31.17)
local Tween0 = TweenService:Create(Leaf, Tweeninfo0, goal0)
Tween0:Play()
end)
Tween:Play()