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

How could I use CFrame.Angles to rotate a part?

I want to know how to use CFrame.Angles() to rotate a part towards another part.

welding.C1 = CFrame.Angles(otherWelding.C1.p, facePlayer)

The script kepts getting errors

4 comments

0

What are the errors

0

If you want to make a part face another part, you use the second argument in CFrame.new().

0

I want the C1 to rotate towards the NPC Torso

1 answer

Angles have three values

CFrame.Angles(0, 0, 0)

try it with a 0 on the end

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