I added a loop function to this gun script, and by doing that it cancelled my other animations playing when they should. How can I keep those animations playing while still looping the main holding animation?
Here is the tool setup: https://gyazo.com/3661fa25393305a3e2690102241c79ed
And this is where I think I'm going wrong, because without this loop the hold animation will stop, but other animations can play, but when I added this loop my other animations won't play. It's probably simple, but I'm new to coding so any input would help.
-- Hold animation
holdTrack = humanoid:LoadAnimation(holdAnim)
holdTrack.Looped = true
holdTrack:Play()
end)
Also, if anybody was wondering I'm not getting any errors, hence why I'm thinking this is the problem.

1 comment
You could try changing the actual player animations. Example: Setting the hold animation as the idle animation for ROBLOX when it is equipped.