Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Getting the Animation Time?

Is there anyway to get the animation time in seconds?

or maybe an event that fires when the Animation stops playing?

Is this the proper way to use KeyframeReached?

function DB()
enabled = true	
end
animation.KeyframeReached:connect(DB)

1 answer

✓ Accepted answer

You can use AnimationTrack.KeyframeReached to tell you each keyframe's name when it is reached.

3 comments

0

Hey I edited the thread, is that the proper way how I had to use it? Because I cannot figure out if the problem is coming from that or something else?

0

Humanoid:LoadAnimation(Animation) returns the AnimationTrack object. KeyframeReached is fired at every keyframe in the animation.

0

Oh thanks I got a feeling I understood

This discussion is preserved as it was. New answers, comments, and votes are closed.