Charging idle not looping

  1. i just looped the animation but when i play it it not playing or looping
    video:

  2. i checked it if it looped but its looped
    heres the script

UserInputService.InputBegan:Connect(function(Key, IsTyping)
	if Key.KeyCode == Enum.KeyCode.F and Equipped and not Blocking and not Stomping and not IsTyping then
		charging:Play()
		task.wait(0.59)
		chargingidle:Play()
	end
end)

UserInputService.InputEnded:Connect(function(Key, IsTyping)
	if Key.KeyCode == Enum.KeyCode.F and Equipped and not Blocking and not Stomping and not IsTyping then
		charging:Stop()
		chargingidle:Stop()
		wait()
		chargingSwing:Play()
		Hitbox:HitStart(0.29)
	end
end)

It is too blurry to see but maybe you need to address the error that is coming out. It could be preventing your script from running correctly.

it not gives any error its just not doing the animation

Why are you playing two animations? They could be interfering with each other or something idk id have to see the animation to understand

1 Like

heres the video of the 2 anims

Try instead of wait() do charging.Stopped:Wait()

still nothing changed it just dont plays

Try playing the idle only first and see if it works with it only the idle

1 Like

it still not works i tried changing animation pripoty

Could you tell me what the red line and the 3 blue lines from your video above say? At least in my experience whenever you see that while running it is a scripting error and will stop any following code once that is hit.

1 Like

If you tried playing the charging animation by itself and it still doesn’t work, then it’s a problem with the animation you’re using.

If you haven’t done this yet- I recommend making sure you’ve exported it properly and make sure you’re using the right id. Sometimes it’s these small things we miss that cause the biggest problems.

1 Like

its from my plugin it gives no error

ok thank you i will gonna try that