Do it by yourself bruh.. we aren't here to do do your code..
Or try looking on youtube or on forums..
Anyway, I would personally make some key points for the bot to pass trough or raycast and rotate the bot and raycast again to try "de-stucking" him if it's stucked againts a wall.. that realy is't the kind of scripts you can ask like that.. your'e on a "scripting-help" forum not a "give me a script" one..