Ok so i have a game where theres an npc that follows you around. Now the animation works and all but between the animations theres delays, here's part of my script:

local HumanoidRan

HumanoidRan = h.Running:Connect(function()
	walk:Play()
	h.StateChanged:Connect(function(oldState, newState) -- h is the npc humanoid
		if (newState == Enum.HumanoidStateType.Seated) then
			walk:Stop()
			HumanoidRan:Disconnect()
		end
	end)
end)

(it works, there's just delays, and the animation is set to priority action and is not looped)

3 comments

0

loop the animation?! Is it a walking animation? If yes, you should loop it, maybe that solves your issue

0

im sorry, it doesn't, no matter what the animation just starts on it's own and never stops

0

and yes it is a walking animation