CFrame

A CFrame, or Coordinate Frame, is a DataType containing positional and rotational data. It can be used to accurately position s through their CFrame property, which unlike Position, allows the part to be rotated.

You can position a part just like you would using the Position property.

To create a rotated CFrame at the origin, use:

It is worth noting that the rotations are not applied simultaneously, but sequentially. So the previous command rotates in the part's X-axis, then the part's Y-axis, and then the part's Z-axis.

For an explanation of the parameters, see radians.

One interesting fact is that any instance with a property that is a CFrame type, for example, the CFrame property of a BasePart object, is hidden in the properties panel. The "Value" property of a CFrameValue is also hidden, thus needing to be modified from a Script, a Plugin, or through the Command Line.

Constructors
CFrames are one of the many DataTypes available in Roblox Lua. A CFrame can be created by using one of the many constructors. However, note that unlike a 's orientation property, it takes rotational arguments in radians instead of degrees.