While it is laudible to figure out the solution to every assigned math proof on your own, it isn't always feasible. If you can still learn the methods of proof for an exercise, don't be ashamed to google the answer, or at least the steps that have you confused.
Alternatively, do your hw with peers in the same class, similar idea, but feels less like you are cheating.
You may not end up needing to do either, but it is frequent that math professors/grad students aren't the best at providing you with the tools that will make you successful on your exercises.
Too often, it is assumed that everyone in math is just some sort of savant, and that biases a lot of our outlook and instruction. Don't get caught up in that bullshit, do whatever you can to properly learn the material and not fall behind.