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 8 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..

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

1 answer

Log in to vote
0
Answered by 8 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.

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


Ad

Answer this question