is there any way I can pause the function progress? like a Break
COMMUNITY QUESTION
is there any way I can pause the function progress? like a Break
2 answers
If you're looking to PAUSE a function, I don't believe there an official function for that BUT you can do it a hacky way.
repeat wait() until value == true
This would yield the script until the value (it may be a local value or an instance value) turns true.
If you're looking to break a function completely though, you can simply use the break or return functions.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
break is to break out of loops and return will make the function return a value, stopping it on that line.
Ik