Hi, I was wondering if there's another way to make a for loop do something multiple times instead of using 2 loops, like this:
for i = 1,5 do -- Main loop.
for i = 1,3 do -- I want the loop above to do this 3 times w/o using a second loop.
print("Hello")
wait(0.2)
end
print("Goodbye")
wait(0.2)
end
The example I used isn't really what I want to do, but it's the shortest way to explain it. Any help/advice will help!

4 comments
What's your actual situation? You might just be able to plop it in a function, then call it whenever you want.
I don't have an exact situation yet, however in the past I've used the same method to create Rain. I was wondering if there's a shorter way to write this down instead of using 2 loops.
I'm not sure how much shorter you want to get. It takes 2 lines to do something n more times
All I was asking is if there was an easier/shorter way to write it, instead of using 2 loops. I don't have a problem with doing the 2 loops, but I wanted to know if there's a way to make it repeat itself w/o doing the second loop.