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?
kittyPGR
(KittyPlays)
#2
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
AustnBlox
(Austin)
#3
AnimationTrack.Stopped:Wait()
-- Further code runs after the AnimationTrack has stopped
2 Likes
DataSigh
(DataSigh)
#4
You could use the .Ended or .Stopped connection
1 Like
system
(system)
Closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.