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

What's the difference between CFrame and Vector3?

I'd like to know this. Does it have anything to do with the way the part is positioned or moved?

Help is appreciated.

1 answer

✓ Accepted answer

CFrame and Vector3 are two different types of data. CFrame has a rotation matrix which allows it to store rotational values for objects. Vector3 is just a point in 3D space.

Values like position use Vector3. Parts do have a CFrame property as well. Which can be accessed by using:

part.CFrame

As I said before. CFrame allows you to set rotation as well as position. To do so you can use:

part.CFrame = CFrame.new(x,y,z) * CFrame.fromEulerAnglesXYZ(math.rad(x),math.rad(y),math.rad(Z))

I would be happy to help you with futher help if required. However, I would suggest reading the wiki articles on CFrame and Vector3

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