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

How do I only get the CFrame.Angles of parts?

Hi, I'm trying to get the CFrame.Angles of a part w/o having the CFrame.p, is there a way to do this? I'd imagine it's something like this, but I'm not sure:

part = script.Parent
angles = part.CFrame.Angles

1 answer

✓ Accepted answer

CFrame.Angles isn't a property, it's constructor, similar to CFrame.new(), Vector3.new(), etc.

If you want the rotation of a brick, use

local angles = part.CFrame.lookVector

lookVector, a property of CFrame, returns a Vector3 rotation of the part.

1 comment

0

Oh, ok. Thank you!

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