Local Position = HumanoidRootPart.Position
HumanoidRootPart.Cframe = Cframe.new(Position, otherPlayersRootPart.Position) — (og Position, where you want it to look)
Of course, assuming that you have already put a click detector inside the player (player.Character.ClickDetector), put a script inside the clickdetector and use this code:
script.Parent.MouseClick:Connect(function(clicker)
local user = clicker.Character.PrimaryPart
local userclicked = script.Parent.Parent.PrimaryPart
user.CFrame = CFrame.lookAt(user.CFrame.Position, Vector3.new(userclicked.CFrame.Position.X, user.CFrame.Position.Y, userclicked.CFrame.Position.Z))
end)
That should fix your problem.
Also the function is called CFrame.lookAt, you can look more into it here
This sort of works. There’s just weird shaking as well as that when the player clicks on a different player, they point towards the old one instead of the new one.