need help with loop

I made an alexandria script to the cave job and when it gets there I made a route to kill uniques but it only does this route once. How do I put only the unique kill route in a loop? because I put a loop at the end of the script so the bot loops at the beginning of the script and not at the beginning of the route

You’d have to have two scripts, one that goes to the area then the one that loops. In your first script that walks to the area, you can change your script by using this from the ScriptCommands plugin.