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)
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)
You can use AnimationTrack.KeyframeReached to tell you each keyframe's name when it is reached.
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
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?
Humanoid:LoadAnimation(Animation) returns the AnimationTrack object. KeyframeReached is fired at every keyframe in the animation.
Oh thanks I got a feeling I understood