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

Why doesnt it loop it?

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

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


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