I am making a plate game, and my code freezes when I use it sometimes. This is a problem, because the main handler freezes. I do have some occasional wait()s in there, so I would just like to ask if a wait() pauses the thread when called in a function from a module.
COMMUNITY QUESTION
Thread yields for seemingly no reason in my code?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
yes, wait() pauses the script that called the function unless the function is called with spawn, coroutine.wrap, delay... or any other thread-creating function.
Thanks! I looking into the subject more, and decided to use the Debris service to wait before destroying objects.