How to get Character to move to end position after animation

I am making an attack combo which consists of 3 different animations which play after I click, and after each animation the character returns to the original position and I do not know how to get the character to stay in the position which the animation ended.

Here is a video of what I mean

robloxapp-20220727-0139490.wmv (325.7 KB)

This is the section of the code which deals with this.

	local character = Player.Character
	local Humanoid = character:WaitForChild("Humanoid")

	local AttackAnimationPlay = Humanoid:LoadAnimation(AnimationTable[Count])
	
	
	AttackAnimationPlay:Play()
	
	
	CombatEvent:FireClient(Player)
	
end)

After looking on the devforum I found that this can be solved by moving the Humanoid Root Part with SetPivot:, However I am a novice scripter so I have no idea how to use that in this situation.

The problem lies in the animation. Instead of moving the player’s body in the animation, you can just make the animation and use something like bodyvelocity or change the player’s Cframe to change the position.

Other than that, you can use “MoonAnimator” It also lets you animate a player’s CFrame though I’m not sure if the player won’t return to the original position after the animation.

Basically, when the animation plays, the player’s torso and everything moves but the player’s original CFrame doesn’t change meaning the player is still at the same spot, it’s just the player’s body that seems to be moving. After the animation ends, the player’s body parts go back to their position.