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.
COMMUNITY QUESTION
Stopping Roblox animations?
1 answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Well, the thing is I don't want to stop the entire player from animating, just the arm.