Problem with custom animations within UE4

Based on this thread:

I tried this and it messes up my mesh, it now looks like this:

The hips are on the ground and rotated in some weird way and the arm is behind his head even though it isn’t supposed to be anywhere near there.

How can I fix this?

I still haven’t solved the problem yet.