Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I detect what keyframe my animation is in?

Asked by 7 years ago

Like this?

animation.AnimationId = "5"
animTrack = humanoid:LoadAnimation(animation)

kf = animTrack.KeyframeReached:connect(function(keyframe)
    if keyframe == 2 then
        print("inserting into hole")
    end
end)
0
The method KeyframeReached, its paramater is a string User#5423 17 — 7y
0
? laughablehaha 494 — 7y

Answer this question