here is the coroutine that looks perfectly fine. but when it goes to check if the player has ran away and stops this current coroutine and starts the next one it crashes. or when i stop this coroutine using yield break it crashes.
![alt text][1]
[1]: /storage/temp/112530-screen-shot-2018-03-06-at-114035-pm.png
↧