I am currently working to fix an animation while flying. While walking on the ground, all animations work perfectly fine, but in this game you can fly, and while flying most animations work fine except one particular attack animation.
I have tried setting the priority and weight of the animation via script before playing it, but printing AnimationTract.Priority returns nil, even after setting it to Enum.AnimationPriority.Action. Printing AnimationTrack.WeightCurrent constantly returns zero even if AnimationTrack.WeightTarget is not zero.
My current code for creating and playing the attack animation looks like:
local AnimationTrack = Humanoid:LoadAnimation(Value.Animation)
AnimationTrack.Priority = Enum.AnimationPriority.Action
print(AnimationTrack)
print(AnimationTrack.Priority)
AnimationTrack:Play()
I have tried setting the attack animation to an action, setting the flying animation as low as idle, but neither of those solve my issue. Like I said, weight is refusing to change so that is helping me none.
All of the animation is being done from a Script on the server side, and I don’t currently have access to the animations themselves. Any pointers or tips would be greatly appreciated.