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)