Give a proof of: $$\forall x Fx \lor \forall x Gx \vdash \forall x (Fx \lor Gx)$$
I don't know how to proof, but here is my attempt.
1 1) $\forall x Fx \lor \forall xGx \quad$ P
2 2) $\forall xFx \quad$ P
2 3) $Fa \quad$ 2,UI
4 4) $\forall xGx \quad$ P
4 5) $Ga \quad$ 4,UI
1 6) $Fa \lor Ga \quad$ 1,3,5 SL
1 7) $\forall x(Fx \lor Gx) \quad$ 6,UG
The rules used can be found in the following links:

You want to use a disjunctive premiss $A \lor B$ to prove a conclusion $C$. The trick is temporarily to assume $A$ and derive $C$, then to start over, temporarily to assume $B$ and derive $C$; then we can say, either way we have $C$. This informal reasoning is captured by the propositional calculus rule of disjunction elimination, which has the following schematic pattern:
Filling in that template in the present case, a canonical natural deduction proof would go:
NB, both subproofs have to end with the target conclusion -- compare your attempted proof which goes wrong in that respect.