Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

can someone help me with TweenService? i want it when my part grows its stays in that size.read more

Asked by 3 years ago

question: Can somebody please help! when the Tween gets bigger i want it to stay like that for 3 seconds then it will go back how do i fix this?

this is my script:

local TweenService = game:GetService("TweenService") local Grow = script.Parent

local Info = TweenInfo.new( 0.5, ---Length

Enum.EasingStyle.Sine, ----easingstyle
Enum.EasingDirection.Out,   ----e.d
0,     -----repeat
true,    ---reverse
2

)

local Goals = { Size = Vector3.new(6,6,6);

}

local makePartBiggerTween = TweenService:Create(Grow, Info, Goals)

wait(10) makePartBiggerTween:Play()

1 answer

Log in to vote
0
Answered by 3 years ago

You can wait after makePartBiggerTween is finished playing and then make the same Tween with a smaller size. After your code add

wait(3.5) -- 3 seconds plus the 0.5 seconds for the makePartBiggerTween
TweenService:Create(Grow,Info, {Size = Vector3.new(3,3,3):Play() -- The same as makePartBigger except we are shrinking it. You can change the size to however small u want it to be
0
so i just have to put wait(3.5) somewhere Rareloljosh21 0 — 3y
0
You just have to put this code after yours and it should work JustinWe12 723 — 3y
Ad

Answer this question