Hey, I would like all animations to stop when the character is not moving at all. I have custom animations for every movement direction.
Anyways this is what I tried.
local AnimationTracks = character.Humanoid:GetPlayingAnimationTracks()
humanoid.StateChanged:Connect(function()
if humanoid:GetState() ~= Enum.HumanoidStateType.Running then
for i, track in pairs(AnimationTracks) do
track:Stop()
end
end
end)