Hello! I’ve tried making a starter character morph with animations, however when you spawn in as the morph the animation doesn’t play when you walk. The local script is in StarterCharacterScripts and the morph is under StarterPlayer. I have placed the animation with the animation ID under the local script.
When I play the game you spawn in as the morph and when you walk the animation does not play and it doesn’t give me any errors in console, and it does not print “playing” or “stop playing” either.
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
local walkAnim = script:WaitForChild("Walk")
local walkAnimTrack = humanoid.Animator:LoadAnimation(walkAnim)
humanoid.Running:Connect(function(speed)
if speed > 0 then
if not walkAnimTrack.IsPlaying then
walkAnimTrack:Play()
print("playing")
end
else
if walkAnimTrack.IsPlaying then
walkAnimTrack:Stop()
print("stop playing")
end
end
end)