Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why won't my other animations play?

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

0

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

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.