Scotland is not part of the EU, only independent countries can be members. Scotland can not reach the budget requirements to join the EU. Spain has already stated they will block any move by an independent Scotland to join the EU.