Animation Won't stop

Ok ,
first thing first , I know there is a thousand or million topic like this and I already search them . But everything is same. So I have an animation and its playing well except when its supposed to stopped it doesn’t .Here is the script:

local AnimationStart = Animtor:LoadAnimation(AnimationPlayer)
AnimationStart:Play()
	AnimationStart.Stopped:wait()
	--AnimationStart.Looped = false
	AnimationStart:Stop()
	AnimationStart:Destroy()

Also I use moon animator for this animation. So any help is appricated :slight_smile:

Try adding after AnimationStart:Play() a wait time, check how long the animation lasts and add a wait time, or a statement that turns false, when animation is done playing

2 Likes

Ok I think its working . I just make it like this:

AnimationStart:Play()
	
	task.wait(AnimationStart.Length)
	--print(AnimationStart.Length)
	
	--AnimationStart.Stopped:wait()
	
	--task.wait(1)
	--AnimationStart.Looped = false
	AnimationStart:Stop()
	AnimationStart:Destroy()

Thanks for helping :slight_smile:

1 Like