Try using a body mover like AlignPosition instead because I don’t think the humanoid controller really likes you just overriding physics by directly setting the position
Earlier in the code i set the pos of the torso on the raycast pos, but i found out the pivot of the thing is still gone, i might try setting the pivots pos to the torso pos