Hello!
I’m having an issue where one animation briefly seems to glitch out a bit before playing the next.
Here’s what I mean:
Like you can see in the video, my NPC does a bit of a turn and shakes a bit before going into his walk animation. I’m not sure if the animation is just not stopping properly, or if it’s something else.
Here’s the script for the animations:
local NPC = game.Workspace.TestNPC
local Humanoid = NPC.Humanoid
local TurnAnim = script.TurnAnim
local TurnAnimTrack = Humanoid:LoadAnimation(TurnAnim)
TurnAnimTrack.Looped = false
local WalkAnim = script.WalkAnim
local WalkAnimTrack = Humanoid:LoadAnimation(WalkAnim)
wait(4)
TurnAnimTrack:Play()
TurnAnimTrack.Stopped:Wait()
WalkAnimTrack:Play()
Humanoid:MoveTo(game.Workspace.Part.Position)
Any help is greatly appreciated. Thank you in advance!