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

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

Asked by 8 years ago

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

Log in to vote
0
Answered by 8 years ago

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.

0
Oh, ok. Thank you! OneTruePain 191 — 8y
Ad

Answer this question