How can I Check when an Animation has finished playing?

Hey developers I was wondering how I could check when an animation finishes playing?

	local animate = humanoid:LoadAnimation(animation)
		tool.Handle.Orientation += Vector3.new(90, 0, 0)
		animate:Play()
--- check when animation stops playing

What would I be able to use to acheive this?

you can use :IsPlaying in a loop like this

local animate = humanoid:LoadAnimation(animation)
		tool.Handle.Orientation += Vector3.new(90, 0, 0)
		animate:Play()
repeat
   task.wait()
until animate:IsPlaying()
print("Animation Stopped")
2 Likes
AnimationTrack.Stopped:Wait()

-- Further code runs after the AnimationTrack has stopped
2 Likes

You could use the .Ended or .Stopped connection

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.