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,
},
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?
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.
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.