-
-
Save SethDusek/94639649487f91440379 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--sorry but this was done in the command bar so no spaces | |
function fun() for i = 1,40 do if yield==true then coroutine.yield() end print(i) wait(1) end end | |
fun = coroutine.wrap(fun) | |
fun() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment