Blender animation doesnt work properly

So i importes my animation and mesh from Blender, but when i run the animation the legs look cursed.
Does someone know to fix that, or can give me source for the import process i can learn from.
( I already fixed the head )