local isJumping = false
local function onJumping(active)
isJumping = active
if active then RunAnim:Stop() end
end
local function onRunning(speed)
if isJumping then return end
if speed > 0 then RunAnim:Play() end --change '0' if necessary
end
humanoid.Jumping:Connect(onJumping)
humanoid.Running:Connect(onRunning)