Um... press the green flag watch the AI find the way to the bottom right from the top left
Scratch Wiki for the AI tutorial The drawing script (not including the pen) by @turkey3 the rest is by me I'm still trying to find out how to make my own pathfinding script.