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.
the animation you're using to play while holding probably has its priority set to action which overrides all other animations, but if it doesn't make sure that it does not include the limbs that your other animations move.