Running animation overlapping Jumping and Falling anim

Hello, I am trying to configure my Running script as the Running animation overlaps the default Roblox jumping and falling animation.

What ive tried :
I have tried looking at other posts, and none come to success.
Tried setting the running to movement and Core, with no success

The Bug : Currently its priority is on movement

How im getting the running animation :

local RunAnim = humanoid:LoadAnimation(script.Sprint)
RunAnim:Play()

Any help would be really appreciated, thank you!

1 Like
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)
1 Like

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