Say it clearly. Keep it simple.
Was can refer to an entire preceding statement or to alles, etwas or nichts. A prepositional relative referring to an idea often uses wo(r)-, while references to people use a preposition plus pronoun.
Spot the clue
Was refers to the entire preceding proposition.
Er hilft uns, was mich freut.
Aha! See the common trap
Try thisEr hilft uns, was mich freut.
Do not use a personal relative pronoun when the reference is the whole preceding fact.
More examples, less guessing
Er hilft uns, was mich freut.He helps us, which pleases me.