When a player touches a part, I want them to teleport to another location. The problem is that when I tested it I teleported to the part, it worked fine, but I found that the player doesn’t rotate to face forward. I tried using Youtube but it just focused on rotating a part and didn’t work when I tested it.
local newCFrame = CFrame.new(-764.3, 855, 121.05) script.Parent.Touched:connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid then local humanoidRoot = hit.Parent:FindFirstChild("HumanoidRootPart") if humanoidRoot then humanoidRoot.CFrame = newCFrame end end end)
This is the script that I made to teleport the player, but as I stated before, it doesn’t rotate the player 90 degrees counter-clockwise so that they’re facing forward. So my question is how would I also rotate the player using CFrame?