What do you want to achieve? Keep a character’s position after an animation. If you play Boxing League, You know what I mean.
What is the issue? The character going back to its original position after an animation. I don’t want that.
What solutions have you tried so far? Did you look for solutions on the Developer Hub? I’ve looked for solutions but I’ve found nothing. I even used roblox assistant but still didn’t work.
I am trying to make a knee slide animation if you’re wondering.
I’m not sure what kind of problem you’re currently dealing with, but if your animation goes forward then I would recommend you to change that animation to stay in one position (not moving forward/backwards) and just script the movement while the animation is playing. You can try using animation events.
Unfortunately, an animation cannot retain it’s position after it’s finished.
However, @KristenMack4’s suggestion is spot-on and would absolutely work through the use of Animation Events. You can use BodyVelocity or LinearVelocity to move your character forward whenever your animation reaches a certain keyframe.
Then you can use:
Animation:GetMarkerReachedSignal("EventHere"):Connect(function()
-- your code to move the character forward here
end)
He can add a script to detect the characters animation position each frame and when the animation stops get the last got position and apply it to current position.
Well the animation might not move the HumanoidRootPart, But it moves other body part, if you keep track of LowerTorso, UpperTorso or Torso (R6) and move them to the last known animation position with CFrame property, It would work.