I did take a look at the RBX Wiki, and all the examples are Functions instead of loops.
✓ ANSWER ACCEPTED
How do you use the Coroutines for loops?
1 answer
✓ Accepted answer
You could try:
coroutine.wrap(function()
while wait() do
print'lol'
end
end)()
while wait() do
print'yep'
end
So basically it prints out(in output):
lol yep lol....
Hope this helped!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thanks!