Oliver Wilkes' late try saw Scotland record an historic first World Cup win as they beat Fiji 18-16, but it was not enough to keep their semi-final hopes alive.
Steve McCormack's side needed to win by 28 points to progress to the semi-final qualifier against Ireland on Monday.
But although they rarely threatened to achieve that, they can still draw immense pride from a gutsy display against Fiji, who now go forward to face the Irish.
The Scots led 12-4 at half-time thanks to tries from Michael Robertson and Jon Steel, but with Jarryd Hayne outstanding at full-back, Fiji hit back to draw level going into the closing stages.
A second try from Bradford winger Semi Tadulala then looked to have sealed it for the Fijians, only for Wilkes to plunge over and draw the teams level again.
Scottish captain Danny Brough calmly slotted the conversion to create history for McCormack's men.
McCormack said: "This will certainly give Rugby League in Scotland a boost.
"It's a developing sport in Scotland and we've been described as minnows all week, and as not having a chance in this game.
"We took that quite personally as a group of Scotland coaching staff and players.
"Hopefully people back in Scotland will see this and know they've got a team to be proud of."
His counterpart oe Dakuitoga - a former Sheffield winger - said: "In the first 40 minutes we just lacked concentration.
"We were better in the second half.
"Scotland had 11 days' rest and we had only three, so the boys played well. We're pleased that we go onto the next stage."