Animation doesnt stop after playing

Hello, so I was making a zombie game. And I got a issue animation that plays when zombie grabs player doesnt stop after playing it.
(This is my first post)

I tried boolean, debugging, Checking if animation plays (IsPlaying) and it still doesnt work.

Im confused why it doesnt work, please help.

Code:

script.Parent:WaitForChild("IsBittedByRunner").Changed:Connect(function()
	if script.Parent:WaitForChild("IsBittedByRunner").Value == true then
	
		

		animgrabbed = script.Parent:FindFirstChildOfClass("Humanoid"):LoadAnimation(script.Parent.RunnerGrabbed)
		animgrabbed.Priority = Enum.AnimationPriority.Action2
		animgrabbed:Play()

	elseif script.Parent:WaitForChild("IsBittedByRunner").Value == false then
		
			
			if animgrabbed.IsPlaying == true then
				animgrabbed:Stop()
				
		end


		end
	end


end)

(Also animation script type is serverscript)

Nevermind, I fixed the problom.

I have the same issue how did you resolve it?

1 Like

Sorry for late respond, but yes, I solved it. so i forgot to make value to true, thats how to fix my problom

i wasnt went online for 12 days lol

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