Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Stopping Roblox animations?

Asked by 9 years ago

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.

1 answer

Log in to vote
1
Answered by
iFlusters 355 Moderation Voter
9 years ago

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)
0
Well, the thing is I don't want to stop the entire player from animating, just the arm. OneTruePain 191 — 9y
Ad

Answer this question