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)
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
The method KeyframeReached, its paramater is a string
?