Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

2 comments

0

so i just have to put wait(3.5) somewhere

0

You just have to put this code after yours and it should work

This discussion is preserved as it was. New answers, comments, and votes are closed.