I have a script that changes the orientation of the player to be in the same direction as a certain part, but it does not seem accurate.
Code:
plr.Character.HumanoidRootPart.CFrame = CFrame.new(click.Character.HumanoidRootPart.CFrame.Position) * CFrame.Angles(0, 0, 0)
wait(0.1)
plr.Character.HumanoidRootPart.CFrame = CFrame.new(click.Character.HumanoidRootPart.CFrame.Position) * CFrame.Angles(0,Part.Orientation.Y, 0)
The orientation of the part is this:

But the orientation of the player is this:

How do I get the proper orientation?