Year 6 pupils at Winhills Primary School, in St Neots, took part in an end of term play called the X-Factory.
The production featured Simon 'Trowel', Ant and Dec as well as some hopefuls seeking their moment of fame.
The X-Factory followed the story of a school, St Dithers, on the brink of closure after being deemed average by 'Ofset'. A range of talented teachers and pupils, including Simon Trowell and his X judges are brought in. Eventually, the old pupils and teachers decide to fight back as Simon's evil plot comes to light.
A spokesman for Winhills said: "The result was a very funny and entertaining show, with some wonderful songs and dances led by Years 3, 4 and 5. Well done to all the Year 6 children for learning their lines and performing so well on the night - they were a credit to the school."