Hello
I am experiencing a weird bug with CFrame.lookAt(). When I type this line of code:
char.HumanoidRootPart.CFrame = CFrame.lookAt(char.HumanoidRootPart.Position, Vector3.new(aimatt.WorldPosition.X, aimatt.WorldPosition.Y, aimatt.WorldPosition.Z))
It works (but it rotates the character up which is not what I want)
However, when I type this out:
char.HumanoidRootPart.CFrame = CFrame.lookAt(char.HumanoidRootPart.Position, Vector3.new(aimatt.WorldPosition.X, aimatt.WorldPosition.Y, 1))
Nothing happens; the character just stays in place and doesn’t rotate towards the attachment.
Thank you for your help in advance