In my game I would like to loop three animations on a character when a button is pressed, but as soon as a different button is pressed it will loop three different animations. I figured I should use a coroutine to do this so a while true do loop inside the coroutine can rotate the three animations and the script will still be listening for the button activated event, but I can't figure out how to kill the coroutine when the different button is pressed. I know coroutine.yield() will stop the coroutine from within it, but is there a way to externally stop a coroutine? Any help would be greatly appreciated, thank you for reading! :D
COMMUNITY QUESTION
How do I externally kill a coroutine?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
