the script works fine importing the model, its when i import the animation file (converted from .hkx to .kf and imported using niftools) that the model becomes like this. I'll show the model imported without the animation in this post via edit.
Edit:
Edit: