Animation not loading

Animation is not loading. Yes, I created the animation.

function module:cast(currentWeapon, endPos)
	local Bullet = game.ReplicatedStorage.Bullet:Clone()
	Bullet.Parent = workspace
	Bullet.CFrame = CFrame.new(currentWeapon.Position, endPos)
	Bullet.Velocity = Bullet.CFrame.LookVector * 600
	
	if self.fireAnimation ~= nil then
		local fireAnimation = self.viewmodel.AnimationController.Animator:LoadAnimation(self.fireAnimation)
		fireAnimation:Play()
		print("Hello IDiot")
	end
end
Animations = {
			Idle = game.ReplicatedStorage.Animations.M1_Garand_Idle,
			Fire = game.ReplicatedStorage.Animations.M1_Garand_Fire,
},

Is the Animation Priority set to Action. and is the animation modle set to the same avatar type to the games, like r6 or r15?

Does the print work? If it does not, then it’s how the condition is set up. Where does this animation even play from; a humanoid or a rigged up weapon/model?

yes i checked it with animation.IsPlaying

it’s a viewmodel for first person shooters

I think you’d have to actually cast the function, it looks like it’s in a modulescript.

Yes, I did run the function and the bullets work as intended but the animation doesn’t load

What if the reasoning of it not working is because of the self’s? is self going towards the viewmodel or what?

Or is it that the viewmodel doesn’t have a humanoid to animate?

it was working until I changed the animation

you can animate a model with an AnimationController

I think its because you are trying to load the animation wong, When loading it load it only into the animation controller, In fact I dont think animation controllers have animators, and if so you dont need to.
Just load it into the animation controller.

Yes I am loading it using the animator which is under the animation controller

Load it only into the animation controller, The dev hub shows how to load an animation track and it shows that it shouldnt be done in the animator inside of it.

there is no difference if i used the animation controller