Make a animation loop while walking inside a part

Hello. am trying to make a animation loop while walking. I looped it but its glitching.
image

You can try to set the values of the “Animate” script in the character, or you can use Humanoid.Running to check if its moving, then playing the animation.

Humanoid.Running:Connect(function(Speed)
if Speed > 1 then
Walk:Play()
else
Walk:Stop()
end
end)

this is the script inside the player

humanoid.Running:Connect(function(speed)
if game.Players.LocalPlayer.Character:WaitForChild(“LeftArm”)then
if speed > 0 then
if not walkAnimTrack.IsPlaying then
walkAnimTrack:Play()
end
else
if walkAnimTrack.IsPlaying then
walkAnimTrack:Stop()
end
end
end
end)

but i want the boat animation to play while its moving but the walk animation glitch’s it.

stop the boatanim while walking and play it when your not

found the issue. it was collide.