Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you make a part face the character?

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

✓ Accepted answer

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.

2 comments

0

I'm still confused on how to do it

0

CFrame.new(Position, LookVetorDirection). Basically, the second vector is the point the part is facing.

This discussion is preserved as it was. New answers, comments, and votes are closed.