Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

NPC Animation has a delay between the loop. What is it?

Asked by 5 years ago
Edited 5 years ago

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)

0
loop the animation?! Is it a walking animation? If yes, you should loop it, maybe that solves your issue Miniller 562 — 5y
0
im sorry, it doesn't, no matter what the animation just starts on it's own and never stops AradIsHere 2 — 5y
0
and yes it is a walking animation AradIsHere 2 — 5y

Answer this question