Spaniards will naturally appreciate your effort in learning their language and this will, in turn, change their attitude towards you. They'll be flattered you're trying to learn their language and will feel more comfortable striking a conversation with you.