local RP = game:GetService("ReplicatedStorage")
local Humanoid = script.Parent.Humanoid
local idleAnimation = RP:WaitForChild("Animations").Idle
local animation = Humanoid.Animator:LoadAnimation(idleAnimation)
if Humanoid.MoveDirection.Magnitude == 0 then
	print("1")
	animation:Play()
	print("1.5")
elseif Humanoid.MoveDirection.Magnitude >= 1 then
	print("2")
	animation:Stop()
	print("2.5")
end
So I have a NPC, I need to make so that when he stands still he played idle animation. But for some reason, the print is written, but the animation is not played what is the problem?
That is, as if the prints work, but the animation does not.

