Jumping animation dosnt play while running

well the title is pretty self-explanatory
i tried setting the jumping animation to movement but that didn’t work so it must have something to do with scripting this is wat it looks like
https://gyazo.com/c1f9bc809d31e589b158adce9221c89f

Have you tried to cancel any running animations when the space bar is pressed and then run the jump animation?

Set the jumping animation to a priority above the running animation priority

1 Like

i tried

UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.W then
local now = tick()
local change = (now - lastChecked)

	if change <= 0.25 then
		human.WalkSpeed = 24
		Sprintanimtrack:Play()
    if input.KeyCode == Enum.KeyCode.Space then
    Sprintanimtrack:Stop()
	end
end
lastChecked = tick()

end)

UIS.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.W then
human.WalkSpeed = 12
Sprintanimtrack:Stop()
end
end)

but that didn’t work

like core,idle,movement,action?
cuz i changed the jump to movement

Change it to Action, since that’s the highest

i did but its still the same idk wats wrong wit my stuff lol

added this in sprint script

human.Jumping:Connect(function(active)
if active == true then
Sprintanimtrack:Stop()
elseif active == false then
wait(0.55)
Sprintanimtrack:Play()
end
end)

3 Likes