Players = game.Players.LocalPlayer
mouse = Players:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "t" then
xPos = game.Players.LocalPlayer.Character.Torso.Position.X
yPos = game.Players.LocalPlayer.Character.Torso.Position.Y
zPos = game.Players.LocalPlayer.Character.Torso.Position.Z
game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(Vector3.new(xPos,yPos + 50,zPos))
end
end)
So I made a script that teleports you up 50 studs but the problem is, when launched('t' is pressed), it takes you up, then makes you face a random direction. No matter what you're looking, when the script is launched, you still face that same,random direction. Any advice on how to fix?

2 comments
If that's the case why don't you get the players torso Rotation XYZ before teleporting and store it in a variable then after you teleport just set the torso Rotation to that variable?
I already tried that...no luck there.