Animation weird while walking

robloxapp-20210506-0016351.wmv

why my animation looks like that when i’m walking?
the animation priority is action
i tried searching but i could not find something that helps me

sorry for the bad quality and choppy video

Something is wrong with your script

this is my code:

local UIS = game:GetService("UserInputService")
local char = script.Parent
local hum = char.Humanoid
local DB = false
local combo = 1

local LP = hum:LoadAnimation(script:WaitForChild("leftPunch"))
local RP = hum:LoadAnimation(script:WaitForChild("rightPunch"))

UIS.InputBegan:Connect(function(input, gameProcessed)
	if gameProcessed then return end
	if input.UserInputType == Enum.UserInputType.LeftShift then
		if DB then return end
		DB = true
		
		if combo == 1 then
			LP:Play()
			combo = 2
			wait(0.5)
			
		elseif combo == 2 then
			RP:Play()
			combo = 1
		end
		
		wait(0.5)
		DB = false
	end
end)

So when walking, the animation for the legs plays & you only want it to play that way when standing still?

nope, the transition between the punch to the walk animation again looks kinda weird

im going to make a better video

(https://gyazo.com/d08faa74ac49e65176ed4727ec02d790)
here’s the better version

the arm kinda “glitches” a bit