This script detects when the mouse touches the line. This doesn't use <touching color []> & <touching []> block. You can play with it : start from a point A and try to reach a point B while touching only the lines.