Hello, I am trying to make a combat system and am making it so the character steps forward after a swing, and the LV I am using just goes to the left randomly, and I dont know why. Here is a bit of the code and a video:
I am assuming that when you fire this linear velocity change, the animation is already playing, and actively changing the orientation (or lookvector) of your character’s HumanoidRootPart. Try firing this code before the animation plays, or wait until this code is fired to play the animation, or get the original orientation of the HumanoidRootPart before the animation plays and use that lookvector to fire this code.
That seems to have been the case, I moved the creation of the LV to the top of the script and enabled it later on and it seems to have done the trick. I thought that the RootPart never moves during an animation and its only the torso, but it seems otherwise. Thank you for your help.