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

What is the difference between coroutine and spawn(function()?

I heard coroutine is better to use, is this true?

1 answer

✓ Accepted answer

spawn wait()'s at the beginning before running, coroutine doesn't.

I'd say use coroutines over spawn.

"spawn seems innocent at first, but once you have a lot of code that all uses spawn, you can see significant delays in execution upwards of several seconds in a resource-intensive games"

source

1 comment

0

any other question? i didn't explain much as i'd like

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