Hey! I’ve been trying to switch between run and walk animation using the default Animate local script in character. The issue is that if I switch to run animation then (after I stop running) it will keep playing (being blended with the idle or walking animation, or any other core animation).
I just change the animation id (of the animation in Animate script) from a local script (the one that manages run) and then I use this code in Animate script (all of the functions included are already created by Roblox in the Animate script):
script:WaitForChild("run").RunAnim:GetPropertyChangedSignal("AnimationId"):Connect(function()
if pose == "Running" then
playAnimation("run", 0.2, Humanoid)
setAnimationSpeed(runAnimSpeedMultiplier)
end
end)
Thank you for reading, I’d really appreciate it if you can help!