That is why the SNP will hold a referendum after the Queen dies or resigns if they should still have the current Monarchs in case Yes wins.
And the current family will still reign in Buckingham Palace.
The Technicalities of lineage is lost on the Scots as they don’t see the House of Saxe-Coburg-Gotha as their rightful Monarchs.
Why not? The Scots turned against the Stuart dynasty far more absolutely than the English did during the civil war. The Scots accepted the house of Hanover just as much as the English did.