my character completes it's sliding animation it goes back to it's old position

my character does a running animation and after the trigger for sliding animation the character goes back to it’s old position to where the slide animation started. is there any script or any way that i could fix it.

Yeah you could do the position interpolation in a script, just make sure you delete the position keyframes in the animation.

@nicholasw1816 this is the problem that i have and what script do i need to add in and do i add it in the player script there is an image below to show what my player does when i trigger the slide animation. it goes back to where the character controller is.