Quick question. I made this very simple script that basically teleports you using a GUI button, but it always teleports you facing 1 direction
script.Parent.MouseButton1Click:Connect(function() game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(58.918, 11.466, 30.89) script.Parent:Destroy() end)
Is there a way to change that? For example, when you teleport to the position you are facing forward but I want to make it so you are facing backward. Hope you understood me.
Does this work out for you?
script.Parent.MouseButton1Click:Connect(function() game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(58.918, 11.466, 30.89) * CFrame.Angles(0,math.rad(180),0) script.Parent:Destroy() end)