Any idea why animation is glitching out

I’m using the default animate script from roblox

Can i see the script? Where your NPC Walks

The animation might not be long enough in terns of duration so each time it reaches the end it loops and starts from the beginning. That’s why it’s “glitching”.