I am trying to make a script that allows you to pick up items on the floor. I have an animation attached to this, and I want the player to be facing the part, then playing the animation.
player.Character.HumanoidRootPart.CFrame = CFrame.lookAt(player.Character.HumanoidRootPart.Position, script.Parent.Parent.Parent.Handle.Position)
I tried doing this, and this does work, however it sometimes flips my character over. If it doesnt, then it feels rugged when snapping to the part.
Is there a better way to do this, like only changing the players rotation to face the part? Thanks