Okay, firstly im not sure this is the correct place to post this so moderators feel free to move it to the correct place.
I started to code yesterday and have sucessfully made my first script however i need some help, I play a RSPS and on the server you quite often get attacked by a evil chicken when doing repetitive tasks. I need some help on how make it so that it runs away from combat and then returns to the same location.
Any help would be greatly appreciated.
EDIT: i dont mind if the script pauses and kills the chicken and then resumes from where it left off.