Is changing animations from the animatescript a bad practice?

I am currently working on a movement handler (crouching, sprinting, etc.) and I’m using the animate script to change the animations. Is it a bad practice to do that in this case?

I was wondering because I’ve experienced the following issues:
_The animations do not load in if you crouch/uncrouch quickly
_The animations do not smoothly transition the first time a player crouches/uncrouched, it was perfectly fine on all other occasions though

1 Like

Do you have to script that you use for the animation, or you using a default roblox animation?

1 Like

I’m using something similar to this

AnimateScript.idle.Animation1.AnimationId = SpecialAnimations.CrouchIdle
AnimateScript.run.RunAnim.AnimationId = SpecialAnimations.CrouchWalk
AnimateScript.walk.WalkAnim.AnimationId = SpecialAnimations.CrouchWalk
1 Like

Have you done something like this? Also I see that your script have 2 CrouchWalk animations but in different Animate variables, is that what is giving you these problems?
image_2021-12-26_150811

1 Like

No, I’m simply reusing both animations. I could do something like you have shown but my and your version are practically the same. I guess I’ll just have to add a cooldown and play all three animations during the loading screen.

Yeah you could do the cooldown, let me know if it giving you the same problem so I can at least see what I causing the problem because I never encountered this problem before.

Ah, I’m an idiot. My script sends an API request each time the animation changes, yours is using instancing, so it only sends a request once.
So yes, it is a bad practice.

1 Like

Lol, at least you found it

///////////////////////////