Hey @AdamC_BH ,
I think that this line is wrong in the guide:
if((USceneComponent* ExistingRootComponent = GetRootComponent())
should be
if(USceneComponent* ExistingRootComponent = GetRootComponent())
BUT
If you scroll down you have the finished example without an IF statement.