Is there any way how I can keep character position after an animation?

I was wondering if there is any way to keep a character’s position after an animation? Because when the animation ends, the character returns to the position where the animation started.

You should check out Root Motion

Alternative:

If it’s your animation then add a keyframe event to the ending of the animation and in a localscript you have to wait for that keyframe to be reached using KeyframeReached and once it reaches set your HumanoidRootPart’s cframe to Torso’s cframe

local Track = Humanoid:LoadAnimation(Animation)

Track.KeyframeReached:Connect(function(KeyframeName)
	if KeyframeName == "EndPosition" then
		Humanoid.RootPart.CFrame = Torso.CFrame
	end
end)

Track:Play()
3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.