Why isn't this animation playing on a meshpart?

This animation is not playing on this MeshPart, I’ve tried everything. nothing works for this.

image

He just slides across the floor motionless

image
image

here’s the script.

local animation1 = Instance.new("Animation")
animation1.AnimationId = "rbxassetid://13446114068"
local idle = script.Parent.Humanoid.Animator:LoadAnimation(animation1)
idle.Looped = true
idle:Play()

local animation2 = Instance.new("Animation")
animation2.AnimationId = "rbxassetid://13446111068"
local walk = script.Parent.Humanoid.Animator:LoadAnimation(animation2)
walk.Looped = true

while wait(.1) do
	if script.Parent:WaitForChild("Humanoid").MoveDirection.Magnitude > 0 then
		walk:Play()
	else
		walk:Stop()
	end
end

Funny thought how it works just fine in the Animation Player

image

1.5 hrs later, no responses?

The AnimationController isnt in the actual mesh its self, just the model. Try moving it there.