Animation not working

Hello, I am learning UE5 and I am trying to add attack animations for weapons. I started off with the First person template so those base animations were already in the game. i deleted the ones that had to do with the rifle since I don’t need those. I followed multiple tutorials on adding animations and did exactly what they did but my animations wont play when I click the mouse button. Ive been trying to figure this out for hours. Please help!

Hello, you need to expose your Blueprint for anyone to help you.

Hello, my apologies. Here are the First Person Character BP and the First person Animation BP

I appreciate you sharing the photos!

From what I can see, your target is the entire actor, but that’s not accurate. Your target should be the arms.

You seem to have two meshes:

FirstPersonMesh

and

Mesh

Whichever of these is the arms, is what should be plugged into the input pin of the PLAY MONTAGE node. I would switch to that node if I were you.

Okay, I understand what your saying. But when I get my First Person mesh reference it says its not compatible with character object reference. Am I missing something?

Look again.

Yes I noticed that after I posted the question. I did what you said and it still isnt working

Can you post a screenshot?


And I tried with both First Person Mesh and Mesh just to make sure

Wait, is this function in a different blueprint?

Why are you pulling from BP_Player_Character (that’s my variable, not yours)?

Just pull the Mesh reference from the side panel of your blueprint.

No its in the player BP, when it didn’t work i tried calling a reference just incase. But even without that reference it still didn’t work

I need to see a video of what you’re doing. I’m not confident we aren’t shooting past one another.

Also, did you add that ARMS SLOT or is it default?

I recorded a video of me remaking the script and trying it but it says new users cant upload attachments. Also the arms slot was there by defualt

Yes, you can upload a link from YouTube.

Here is the link

Okay, very helpful because you were giving me the impression that Unreal was saying that the Object Reference was incompatible. You never clarified that this was no longer the case… or if you did, it was unclear to me.

So, what is the issue now? It looked like the animation played. Did it not? It’s hard to tell because the framerate tanked right after picking up the sword.

Also, you have a LOT of errors. That means something isn’t connected correctly, because it doesn’t exist within the level. But for now, I need you to clarify the above questions.

So yes sorry i meant to clarify i got the script working.

With the script working the animation is not playing.

And dont mind those errors it has to do with the damage system im working on because its not finished

In that video the entire time after I pick up the sword I was clicking the mouse button to try and get the animation to play

I need to be 100 percent sure. Can you reupload a video without the tank in framerate?

Or does it do this every time?

I’m unsure if the animation is playing as you pick up the sword.

Here is a new video