I am having an issue where for some reason I am unable to stop a playing animation track. I have tried using Track:Stop() as well as
for i,v in pairs(Hum:GetPlayingAnimationTracks()) do
v:Stop()
end
but neither of these work. The other issue is that I am unable to move the character model when the animation is playing. It will simply move the rootpart but not the character until the animation has ended. For context I am trying to make the character move through a bunch of waypoints after the animation stops as a knockback effect. Here is the code :
Aroot.Anchored = false
DefenceTrack:Stop()
spawn(function()
for i,waypoint in pairs(wayPoints) do
local part = Instance.new("Part",game.Workspace)
part.Anchored = true
part.CanCollide = false
part.Size = Vector3.new(1,1,1)
part.Shape = "Ball"
part.Material = Enum.Material.Neon
part.Position = waypoint
Aroot.CFrame = CFrame.new(waypoint)
task.wait(0.1)
end
end)