Okay so, the animation is set to loop, I'm just trying to get the Animation to stop playing after once the character stops moving. I have the if Anim then Anim:Stop() to stop it from playing upon player join
local Anim
humanoid.Running:Connect(function(speed)
CurrentAnim = "Walking"
if speed > 0 then
local Animation = Instance.new('Animation')
Animation.AnimationId = WalkAnimID
Anim = humanoid:LoadAnimation(Animation)
Anim:Play()
else
if Anim then
Anim:Stop()
if speed == 0 then
Anim:Stop()
end
CurrentAnim = ""
end
end
end)

1 comment
I would personally use GetPlayingAnimationTracks and stop all animations made from the Running animation ID. It helps stop the animation glitches. Reply if you'd like an example in answers