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:
1 | 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:
1 | Character.Humanoid.Running:connect( function (speed) -- Create the correct path. |
2 | if speed > 0 then |
3 | print ( "Player walking" ) |
4 | Path.animation:Stop() |
5 | end |
6 | end ) |