Animation doesn't stop when played a second time

Hi, I encountered an issue where if I play an animation a second time, it will not stop, however it does when played once.
I did set .Looped to false, and I stop the animation with task.delay (Specifically after 11.6 seconds ( The duration ) )

					local LoadAnimation=Humanoid:LoadAnimation(Animation)
					LoadAnimation.Looped=false
					LoadAnimation:Play()
					taskdelay(11.666,function()
						LoadAnimation:Stop()
					end)

The animation is activated whenever someone fires .Chatted with a certain message.


Any help is appreciated, thanks!

Imagine solving it 30 seconds after making a post about it
Yeah, so basically all there was to do was add

LoadAnimation.Looped=false

In the task.delay
Leaving this here for anyone who encounters the same problem

2 Likes

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