How to get a position of a player and use it to move a player to it later

So, I’ve been trying to crack this for a while now.

Basically, when I run an animation, I want it to reach a specific keyframe and get the RootPart position of a player. When it ends, I want the player to move to that position.

How do I memorize the position? I tried using CFrameValue, but it’s just CFrame - it wouldn’t help with my case.

Code concept

--track the root part
				animation.KeyframeReached:connect(function(keyframeName)
	   				if keyframeName == "EndRootPart" then
	       				--get the position
					end
				end)
				animation.Stopped:wait()
				--move the player to the position
				debounce = false

Any ideas? Thanks!

You can get player position Using

local postion = player.Character.HumanoidRootPart.Position

and teleport using

player.Character.HumanoidRootPart.Position = position