I'm working on a custom sword script and it uses CFrame.Angles to position the arm correctly, however when the player runs, the arm still animates up and down. Is there a way to stop only the arm from animating? I've tried everything I could think of and nothing has worked yet. Also, the game is FilteringEnabled.
Well in basic:
animation:Stop()
But as you said you wanted it to occur when the player is moving? This is a basic function that detects if the player is moving:
Character.Humanoid.Running:connect(function(speed) -- Create the correct path. if speed > 0 then print("Player walking") Path.animation:Stop() end end)