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

Why doesnt it loop it?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

Not sure why it doesnt work like it should..

1for i = 1, 3 do
2LoadingFrame:TweenSize(UDim2.new(LoadingFrame.Size, 560, 0, 310), "Out", "Back", 0.7, true)
3wait(0.3)
4LoadingFrame:TweenSize(UDim2.new(LoadingFrame.Size, 550, 0, 300), "Out", "Back", 0.7, true)
5end

1 answer

Log in to vote
0
Answered by 9 years ago

Alright, so I found a fix. You want this to only loop for a certain amount of time before stopping, correct? If so, It's as simple as adding a wait right before the end.

1for i = 1, 3 do
2LoadingFrame:TweenSize(UDim2.new(LoadingFrame.Size, 560, 0, 310), "Out", "Back", 0.7, true)
3wait(0.3)
4LoadingFrame:TweenSize(UDim2.new(LoadingFrame.Size, 550, 0, 300), "Out", "Back", 0.7, true)
5wait(0.3
6end
Ad

Answer this question