How the system play animation

In this post, I just want to ask how the system/game play an animation. When I call the AnimTrack:Play(), the character starts playing the animation. But before playing the animation, the character have a duration time for the character change from default state to the first frame of the animation.
I want to ask about this duration time, what is the exact time for it to change or there is no a duration time?
And any useful documents can provide to me?
I would really happy if can provide me any help. Thank you

depends, you can type task.wait() if you want it to play instantly, but you can’t really know the exact duration it takes to play the animation

But isn’t task.wait() is for waiting? Why it can play instantly if i used task.wait()?

because task.wait() waits an amount of seconds in the parentheses like task.wait(3) waits for 3 seconds and task.wait() waits 0 seconds which is instant

I think I typed too blurry.
Let say I have an animation call “A”
The character default state is standing and doing nothing

Frame 1 of “A” is the hand behind the head
Frame 10 of “A” in hand front the head

When I play an animation, the character will first change from default standing to Frame 1(head behind head)
And how can I know the time from standing default state to Frame 1 or there is no a time?

you can know it when the animation is triggered, you can type print("Animation Playing") before you play it

It’s usually a time of 0.1 second, but it may vary depending on performance.

task.wait() isnt instant, no task.wait is instant

oh, ok and thank you.

I also want to ask is the character must have a time from any pose to the first frame even the character is in a strange pose, is it must have a duration?

If I’m understanding right, the answer would be that there is a delay, but it’s small.

Kinda made a mistake here, it’s not exactly 0.1 seconds but it depends. If you play the animation on the client, it’s usually a very short delay BUT can increase depending on performance. If you play the animation on the server, it’s a shorter delay.