Animating within UE4 messes up the character model

Based on this thread:
https://forums.unrealengine.com/show...ditor-possible

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?