FR 5771 then FR 3995 at Dublin
Glasgow → Dublin → Agadir
Timetable, Dublin time
15:00FR 5771 from Glasgow at the gate
07:10FR 3995 to Agadir leaves the gate
16 h 10 apart on the timetable, overnight
FR 3995 leaves 16 h 10 after FR 5771 arrives on the timetable: more than half a day, so not a connection we count.