Help with animation transition 'bouncing' (r6)

Example here: Lightsaber Combat - Roblox Studio 2022-06-25 19-09-37 GIF by whereiuploaddevforu... | Gfycat

In my starwars game I have a blocking and holding system but this weird bounce thing happens with the left arm.

I have tried setting the proity to action 4 but it doesnt help. I have searched up on google and nothing came up.

can anyone help??

main part of my code:

spawn(function()
	while wait() do
		mb2 = UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2)
		
		--print(mb2,swing,e,blocking)
		
		if mb2 == true and swing == false and e == true and blocking == false then
			
			print(print(loadedAnims[2]))
			
			blocking = true
			
			local char = plr.Character
			local hum = char:WaitForChild("Humanoid")

			loadedAnims[1]:Stop()
		
			loadedAnims[2] = hum:LoadAnimation(anims[2])
			loadedAnims[2].Priority= Enum.AnimationPriority.Action3
			loadedAnims[2].Looped = true
			loadedAnims[2]:Play()
			sounds[4].PlaybackSpeed = 0.975
			script.Block:FireServer(true)
		else
			
			warn(print(loadedAnims[2]))
			
			if mb2 == false and e == true and swing == false then
				
				loadedAnims[1]:Play()

				blocking = false

				if loadedAnims[2] ~= nil then
					loadedAnims[2]:Stop()
					loadedAnims[2] = nil
					sounds[4].PlaybackSpeed = 1
				end
			end
		end	
	end
end)

ty for helping if you did!

It might be the weight of the animation. It might also be that the EasingStyle was specifically set to bounce when the animation was composed.

I did

loadedAnims[2]:Play()
loadedAnims[2]:AdjustWeight(1)

and it didnt work. but what do you mean by easing style? i use default roblox animator btw

Easing style is in the animation editor. You should also look up the arguments of :Play()

Thanks i set it to

loadedAnims[2]:Play(0.100000001,1,1)

and its on linear.

still doesnt work if i wasnt clear

I’m not sure anymore. I think there’s a function for an Animator to stop all other animations. Try using that.

i tried

			loadedAnims[2] = hum:LoadAnimation(anims[2])
			loadedAnims[2].Priority= Enum.AnimationPriority.Action3
			loadedAnims[2].Looped = true

			**local AnimationTracks = hum:GetPlayingAnimationTracks()**

**			for i, track in pairs (AnimationTracks) do**
**				track:Stop()**
**			end**
			
			loadedAnims[2]:Play(0.100000001,1,1)
			sounds[4].PlaybackSpeed = 0.975
			script.Block:FireServer(true)

and it didnt work, thanks for helping tho

Well i just decide to make another animation of it transitioning from hold to block and it worked so thats the solution

To explain what you did give more details?

What I understand is that the EasingStyle was not correct.

it wasnt the easing style and im still unsure of why it happend but i basically made a animation where the character would change from blocking to holding and play that then start the holding animation and it worked