Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would you attempt to change the direction that an object is facing?

Asked by
Klamman 220 Moderation Voter
8 years ago

I'm trying to move an NPC to a place and then make it face a certain direction. I'm not entirely sure how to use lookVector (though I'm under the impression that it would be very helpful), and BodyAngularVelocity wouldn't be too helpful for me right now. How can I change where an object is facing easily?

Failed attempt at trying to understand:

game.Workspace.Player1.Torso.CFrame = game.Workspace.Player1.Torso.CFrame * CFrame.Angles(game.Workspace.Player1.Torso.CFrame.lookVector.X, game.Workspace.Player1.Torso.CFrame.lookVector.Y, game.Workspace.Player1.Torso.CFrame.lookVector.Z)

Answer this question