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.

2 comments

1

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.

0

Thanks! I looking into the subject more, and decided to use the Debris service to wait before destroying objects.