How to play animation when tool equipped?

Hi,
How do I play an animation when a tool is equipped?
I have an animation at core priority. It only animates top body parts, and it’s of a character holding a baseball bat.
When equipped, I want the characters legs to run the same way but just the top body plays the custom animation. How do I do that?

Sincerely,
-coolguyweir

1 Like

Core is the lowest priority so changing it to a higher priority should work. Try changing it to Action or Movement. if you didn’t animate the legs then it won’t make a difference.

Here is the script:

local Tool = script.Parent --You can specify your tool i put script in Tool

Tool.Equipped:Connect(function()
	--Your Script
end)

So I could keep it at core, since I didn’t animate the legs?

There are 4 different animation priority;

Idle (I Recommend, The Third Priority),

Movement (The Second Priority),

Action (The Highest Priority),

Core (The Lowest Priority)

These 4 animations determine your priority. As you can see, their names are the same as the animation types. Like, If you are making a move, you must set the priority to “Movement Priority”. You don’t need to make the priority the same as the animation type, but if you want to do it right, you should.