Dundee cameflying out of the traps and after four minutes Barry Smith crashed a powerful shot off the post from 20 yards after Gavin Rae's initial effort was charged down.
But it was one of the Scarlets' rookies - Jon Davies - who helped seal the result as the centre cameflying up in defence to floor Ceri Sweeney, knocking the ball loose for Williams to gather and race under the posts.