Hello, I have an animation, and after it’s over, I would like to set the player to go back to where the animation ends. But instead, the torso’s CFrame simply goes to a random position. I have no idea why this happens, all I know is that it goes to a random position the same distance as it’s supposed to go from a center point, but at a random angle. If anyone has any ideas as to why this may happen or a possible solution, I would appreciate it!
ehum:LoadAnimation(anims.Countering):Play()
hum:LoadAnimation(anims.CounterHit):Play()--this is the animation that happens on the player
task.wait(1.7)
local keep = char.Torso.CFrame --this variable sets to the cframe of the player's torso when they're on the ground
hum:TakeDamage(40)
task.wait(1)
char.smoothcam.Enabled = true
game.ReplicatedStorage.ShiftLock:FireClient(game:GetService("Players"):GetPlayerFromCharacter(hum.Parent),true)
strv:Destroy()
char.Torso.CFrame = keep --after the animation is over, I would like to set the torso back to the cframe set before