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!