What do you want to achieve?
i want to have a jump animation and it go back to the walking animation
What is the issue?
What solutions have you tried so far?
i am still learning roblox studios code so the best i could think was to add “then walkAnim:Play()” but that just made the character walk as soon as spawning in
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local walkAnim = animator:LoadAnimation(character:WaitForChild('Walking'))
local jumpAnim = animator:LoadAnimation(character:WaitForChild('Jumping'))
humanoid.Running:Connect(function(speed)
if speed > .1 then
if not walkAnim.IsPlaying then
walkAnim:Play()
end
walkAnim:AdjustSpeed(speed/16)
else
if walkAnim.IsPlaying then
walkAnim:Stop()
end
end
end)
humanoid.StateChanged:Connect(function(old,new)
if new == Enum.HumanoidStateType.Jumping then
jumpAnim:Play()
end
end)```
alright i did that but now it doesn’t play long enough? it just BARELY starts the animation
edit : at least it goes back to idle / walking when i walk though