He's talking about this snippet of code:
local movement = sol.movement.create("path")
movement:set_path{4,4,4,4,4,0,0,0,0,0}
movement:set_speed(20)
movement:start(traveller2)
end
Either this a copy-paste error, or you did forget the function decleration, but in any case, if i executed it, i would get this error message (not in this exact format, but whatever) :
Error : unexpected symbol "end" at line 13:1