Slowed run animation while jumping

What’s the method people use to slow the sprint animation only when people are jumping and put it back to normal when they land? Are they just using humanoid state type and adjusting the animation speed if it’s playing? I assume so but idk.

If it’s a custom animation, you can set the animation’s playback speed like this

local anim = hum:LoadAnimation(RunAnimation)
anim:Play()
anim:AdjustSpeed(0.5) -- 1 is the normal

I already knew that as I said above, I asked what the method was for slowed running only in air since I assumed it was humanoid state type checking but those aren’t usually accurate so I was wondering if there was another method.

In my game, I check the jump with UIS.JumpRequest and the land just simply PlayerState.Landed and it works fine for me

Ok alright thanks, was just wondering if that was the most common method.

local function OnHumanoidJumping(Active) --Represents if a jump began or ended.
	Animation:AdjustSpeed(if Active then 0.5 else 1) --Half the animation's speed while suspended in the air.
end

Humanoid.Jumping:Connect(OnHumanoidJumping)
2 Likes

That would work but would bug the visuals if the jumping bool goes false at any point when they are holding the space-bar, if that’s the case then just using UIS and checking the space-bar input began and ended to determine the speed would be best otherwise yeah that works too.