So I have a skinned mesh with animations which should play when it walks.
However this is not the case here is the code I’m using:
local walk = script.Parent.Humanoid.Animator:LoadAnimation(script.Walk)
local chase = script.Parent.Humanoid.Animator:LoadAnimation(script.Chase)
script.Parent.Humanoid.Running:Connect(function(speed)
if speed > 0 then
if speed <= 8 then
chase:Stop()
walk:Play()
else
walk:Stop()
chase:Play()
end
else
walk:Stop()
chase:Stop()
end
end)
I have looked at many posts about this and nothing works, one thing to note is that the keyframes don’t show up in the animation editor but it still plays fine.
Here is how I have it set up:
Any help is amazing thanks. (this script worked fine on an old rig I used which wasn’t a skinned mesh)