How do you override an Animation Body Part with another Animation

Hi I’m currently working on my Gun System and there’s a problem which is the Weapon Arm Animation not overriding the Sprint Animation.

This is what the Sprinting Animation looks like:

image

This is the Weapon Arm Animation:

image

And this is the problem:

image

Basically the Arm failed to stay like where it’s supposed to be. I have tried finding posts about these but they also have no solutions. However, Fe Gun Kit manage to apply it like this:

image

This is the Script I made:

SprintTrack = Humanoid:LoadAnimation(SprintAnimation)

local IdleAnimation = WeaponAnimations.Idle
IdleTrack = Humanoid:LoadAnimation(IdleAnimation)

Player.PlayerScripts.StarterSprint.SprintValue.Changed:Connect(function()
	if Player.PlayerScripts.StarterSprint.SprintValue.Value == true then
		SprintTrack:Play()
		print("On")
	elseif Player.PlayerScripts.StarterSprint.SprintValue.Value == false then
		SprintTrack:Stop()
		print("Off")
	end
end)

I’m still currently working on to find the Solution.

2 Likes

Change Animation Priority.

2 Likes

I’m using Idle as the Arm Animation. Should it be Action?

If its more important than the Base Animation you have, then raise its priority.
For your case, your tool’s animation will need to be a higher priorty to not conflict with the base animations.

Hmmm I’ll see what I could try.

Aye it works! I used Action as the Priority.

image

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.