I have a script that I want to stop a function if a certain event happens, but I don't know how to stop a function while it's running. How do I do it?

3 comments

0

Do you want to be able to resume the function after it is stopped or no?

0

No, but I will need to call it again later

0

you can stop the function in the function