Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Functions? 2 of them.

Asked by
Tor6 0
9 years ago

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?

1 answer

Log in to vote
0
Answered by 9 years ago

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!

0
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. Tor6 0 — 9y
0
You could use something like a debounce system. YasuYoshida 171 — 9y
Ad

Answer this question