If you have 2 functions, one is a loop and the other isn't. How do you make it so that if one function is runned the other stops?
Functions? 2 of them.
1 answer
I'm not familiar with this type of question, but I will try my best to help you. I can't understand your questiong fully so I'm going to give a few suggestions.
The only thing that popped into my mind when I heard this question is Coroutines. I have never really used them before so I can't explain them, but you wanted to know if there was a way. This seems like the only one that I know. There is a wiki article below that should help you with them.
Roblox Wikipedia Article on Coroutines http://wiki.roblox.com/index.php/Beginners_Guide_to_Coroutines
I hope this might help you on what your looking for. The only other thing that you could use is a some kind of debounce system.
Make sure you read the question rules!
https://scriptinghelpers.org/questions/11710/2-functions-at-a-time
Don't forget to mark this as solved and as the correct answer!
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Well I know how to use corontine, and how to runs two functions at a time. What i want to know is hwo to make it so that if one function ran, the other one would stop.
You could use something like a debounce system.