Keeping Tool/Arm Still During Animation

I have a tool that I want to constantly be held straight, but once the running animation plays, the tool moves.

I tried making a tool animation that held the tool straight, but it would still move because of the torso movement, so I scrapped that. (P.S. I’m not sure if this contributes, but the walking animation accelerates.)

How can I go about making the tool constantly straight? Anything is appreciated, thanks!

1 Like

Try making both animations the same animation priority. For example, if the running animation’s priority was Action, then set the holding animation’s priority to Action. That way, they would play together with minimal interference.

1 Like

Didn’t seem to work, the arm is still swinging fully. Not sure what this could have to do with

How about you set the animation priority higher? Hopefully it’ll override the hand so that the animation should play normally.

1 Like

That was my initial attempt, setting the straight arm animation to action4, but it didn’t work either

May I see the script you use to play the animations?

1 Like

Yeah, of course! And now that I look at it, the arm rotation is less on the specific arm.

local tool = script.Parent
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/Asset?ID=17403328171"
local track
tool.Equipped:Connect(function()
	track = script.Parent.Parent.Humanoid:LoadAnimation(anim)
	track.Priority = Enum.AnimationPriority.Action
	track.Looped = true
	track:Play()
end)
tool.Unequipped:Connect(function()
	if track then
		track:Stop()
	end
end)

Ohh, my bad. I just noticed, I set the animation priority through the animation editor, not the script.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.