I want to make the player forcefully face an NPC. What would I use in a script to pull this off?
One of the CFrame constructors is CFrame.new(Vector3 pos, Vector3 lookAt)
which constructs a CFrame at position pos
oriented towards lookAt
.
character:SetPrimaryPartCFrame(CFrame.new(character.PrimaryPart.Position, NPC.PrimaryPart.Position))
Since most likely you don't want the player to teleport elsewhere I keep the position the same. It just looks at the NPC now.