Currently, I have a punching animation. This is my code to make it run:
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://3055379020"
Track = Character:WaitForChild("Humanoid"):LoadAnimation(Animation)
Track.Looped = false
The animation seems to rotate the player left and proceed with the punching. Is this a programming related issue, or something wrong with the animation?
April 10, 2019, 6:02pm
If that is all of the code you used to play the animation, then it would be the animation, try to import the animation ID into the editor and make sure the rig is pointing forward instead of backwards.
April 10, 2019, 6:08pm
I imported the animation from Mixamo, and we can’t get it too rotate in the direction the player walks.
April 10, 2019, 7:07pm
I would say it’s the animation. Make a rig and use the animation editor to preview the animation.
If the animation start position is rotated, the animation will rotate the character.
Mixamo has the option to “mirror” the animation in case its animated the wrong way. try redownloading the animation with the Mirror box checked (or unchecked in case it was checked)