Since you're asking about teaching the general difference-of-$n$th-powers formula, I'll assume the students have already learned the difference-of-squares and difference-of-cubes formulas:
$$\begin{align*}
n=2: \quad x^2 - y^2 &= (x - y)(x + y)\\
n=3: \quad x^3 - y^3 &= (x - y)(x^2 + xy + y^2)
\end{align*}$$
If they haven't learned these yet, then something is very wrong with either 1) their curriculum progression leading up to this point, or 2) the expectation that they should be able to learn the general difference-of-$n$th-powers formula.
To nudge them towards the general formula, I'd rewrite the above with color-coding and all exponents explicit:
$$\begin{align*}
n=2: \quad \color{blue}{x^2} - \color{red}{y^2} &= (\color{blue}{x} - \color{red}{y})(\color{blue}{x^1}\color{red}{y^0} + \color{blue}{x^0}\color{red}{y^1}) \\
n=3: \quad \color{blue}{x^3} - \color{red}{y^3} &= (\color{blue}{x} - \color{red}{y})(\color{blue}{x^2}\color{red}{y^0} + \color{blue}{x^1}\color{red}{y^1} + \color{blue}{x^0}\color{red}{y^2})
\end{align*}$$
Then I'd ask them to describe the pattern to me. (If they can't do this, then I'd use Socratic questioning to get them over the hump.)
Once they've successfully described the pattern, I'd ask them to take their best guess at the case of $n=4.$ We'd multiply the RHS out the long way to verify it.
$$n=4: \quad \color{blue}{x^4} - \color{red}{y^4} = (\color{blue}{x} - \color{red}{y})(\color{blue}{x^3}\color{red}{y^0} + \color{blue}{x^2}\color{red}{y^1} + \color{blue}{x^1}\color{red}{y^2} + \color{blue}{x^0}\color{red}{y^3})$$
And then I'd ask them to write down the formula for arbitrary $n.$
$$\color{blue}{x^n} - \color{red}{y^n} = (\color{blue}{x} - \color{red}{y})(\color{blue}{x^{n-1}}\color{red}{y^0} + \color{blue}{x^{n-2}}\color{red}{y^1} + \cdots + \color{blue}{x^1}\color{red}{y^{n-2}} + \color{blue}{x^0}\color{red}{y^{n-1}})$$