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

How do you make a part face the character?

Asked by 7 years ago

I've been trying to find out for a while but got nowhere. All I need is a brief explanation on how you do that.

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

Use CFrame

Considering you know how to get the character, you would face the front of the part to the character's torso with this CFrame constructor,

part.CFrame = CFrame.new(part.Position, Torso.Position)
Torso.Position would be the position of the character's torso. You also can't get the position of a model, so you would have to face the part at the character's torso head, or some other part inside the Character.

You could have found this information on the wiki on CFrames under Rotating Bricks. You could also do this with body gyros.

Good Luck!

If this answers your question, please don't forget to accept my answer.
0
I'm still confused on how to do it ickeyben123 22 — 7y
0
CFrame.new(Position, LookVetorDirection). Basically, the second vector is the point the part is facing. User#11440 120 — 7y
Ad

Answer this question