I did take a look at the RBX Wiki, and all the examples are Functions instead of loops.
RBX Wiki
Functions
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!