When I was making a slide script and animation, I noticed how if the player continue moving when sliding that the original walking/ running animation will play despite it having a lower Priority.
And yes, I have tried removing the animations under Character.animate, but the default animations will then take place.
Video:
Try to rotate the legs a little bit and rotate it back on each frame of the animation
The reason is that if you don’t have an animation on the leg to override the default then the default will play on the legs.
In the animator tool slightly move every limb under every keyframe line to make it assume the position you setted them to, instead of the roblox’s one, this normally happens if you don’t move a limb in a specified keyframe line in the animator.
EDIT: With keyframe lines I mean all the aligned keyframes in the animation tracks.
It already is in movement, and no I tried using action, same results.
Set the movements for all the limbs. For R15 avatars changing I belive you have to define them otherwhise they will use the one from the running animation even if you have a higher priority.
I did set movement for everything single possible part.
the reason why this happens is because even if the animation you run is off higher priority if there are any character parts that arent being animated (with a higher priority) the lower priority animation will still play on those unanimated parts,
how you could prevent this is disabling the ainimation localscript located in the character (meaning the deafult run, walk, jump ect animations wont play when u deactivate the script that runs them
char.Animate.Disabled = true
and then turn it back on again once your done sliding understand?
Again I assigned movements to every single part, including the legs.
I have tried disabling the char.Animate script but if the player is already moving the legs animations will still play.
I have solved the problem by getting the animation by using Humanoid:GetPlayingAnimationTracks()
and adjusting the speed of WalkAnim
and RunAnim
to 0.