i've been trying to give my lightsaber tool an idle and run animation. i've gotten the running part down but i can't figure out how to play the animation when the player's standing still. here's my code:
Tool.Equipped:Connect(function()
humanoid.StateChanged:Connect(function(oldState, newState)
if newState == Enum.HumanoidStateType.Running then
runAnim:Play()
idleAnim:Stop()
elseif oldState == Enum.HumanoidStateType.None then
runAnim:Stop()
idleAnim:Play()
end
end)
end)
nothing prints in the output so i don't know how to fix it, please help!

2 comments
swap lines 4 and 5
i tried that and got the same result