Why is my animation don't playing

Hello!
I was making my custom animation for my custom character but the character are isn’t playing
I’m using framework to do it
Main script in AI:

local Animator = require(game.ServerStorage.Modules.DogManModules.Animator)
wait(20)
while wait(0.0001) do
	for _,plr in pairs(game.Players:GetChildren()) do
		if plr.Character.Ready.Value == true then
		   if (plr.Character.HumanoidRootPart.Position - workspace.DogMan.HumanoidRootPart.Position).Magnitude <= 55 then
				Queue = {}
				table.insert(Queue,plr)
				plr2 = plr
			end
	    end
	end
     if plr2.Character.Ready.Value == true  then
		if (plr2.Character.HumanoidRootPart.Position - game.Workspace.DogMan.HumanoidRootPart.Position).Magnitude <= 55 then
			Animator.PlayRunningAnimation()
		repeat
			
			workspace.DogMan.Humanoid:MoveTo(plr2.Character.HumanoidRootPart.Position)
            wait(0.00001)
			until plr2.Character.Humanoid.Health == 0 or (plr2.Character.HumanoidRootPart.Position - game.Workspace.DogMan.HumanoidRootPart.Position).Magnitude >= 55
			if plr2.Character.Humanoid.Health == 0 then
				game.Workspace.DogMan.Main.Disabled = true
				wait(0.001)
				game.Workspace.DogMan.Main.Disabled = false
			end
		Animator.PlayerIdleAnimation()
		end     
	end
end

Module:


local Module = {}

function Module.PlayRunningAnimation()
	local Loaded = game.Workspace.DogMan.Humanoid:LoadAnimation(game.Workspace.DogMan.Animations.Running)
	Loaded:Play()
end
function Module.PlayerIdleAnimation()
	local Loaded = game.Workspace.DogMan.Humanoid:LoadAnimation(game.Workspace.DogMan.Animations.Idle)
	Loaded:Play()
end
function Module.PlayWalkingAnimation()
	local Loaded = game.Workspace.DogMan.Humanoid:LoadAnimation(game.Workspace.DogMan.Animations.Walking)
	Loaded:Play()
end
function Module.StopAllAnimations()
	for _,track in pairs(game.Workspace.DogMan.Humanoid:GetPlayingAnimationTracks()) do
		track:Stop()
	end
end

return Module

Thanks for any help

Make sure the animation priorities are properly set to Movement in the animation editor. They might be interrupted by any roblox core animations.

1 Like

Nope I did it but the animation is still not playing @coolguy950