How do I check if this line of code stops?

Title is self-explanatory, I’m trying to make a mag checking system using FE Gun kit

The line of code I’m referring to:

SetAnimationTrack("InspectAnim", "Play", AnimationSpeed)

Except that it isn’t, at least not to me. What do you mean by the line of code “stops”? Are you asking if that function ever returns? Or are you asking if that line of code is being reached at all? Or do you mean does the animation stop vs loop forever?

the line plays an animation called InspectAnim, I’m trying to see if there’s a way to check if the animation stops (sorry for not giving more context)

Use the .Stopped event for the animation track.

InspectAnim.Stopped:Connect(function()
print("Anim stopped!")
end)

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