The sentence is Everybody needs a friend - there is only one pronoun in the sentence and that is the word 'everybody.'
In this sentence, the pronoun everybody is acting as the subject of the sentence, somebody who is doing the action of needing a friend. This means that the noun function is subject. When it comes to the type of pronoun, this would be an indefinite pronoun, given that it is not really specific. So, the pronoun class is indefinite.