FR 3994 then FR 5151 at Dublin
Agadir → Dublin → Glasgow
Timetable, Dublin time
18:15FR 3994 from Agadir at the gate
14:30FR 5151 to Glasgow leaves the gate
20 h 15 apart on the timetable, overnight
FR 5151 leaves 20 h 15 after FR 3994 arrives on the timetable: more than half a day, so not a connection we count.