How will I see my part's CFrame? Is it the position?

Okay so, I am very sorry if this is in incorrect topic, but in this topic how will I see my part CFrame?

Recently I just have been scripting, and I needed some help here.

I need to know my part CFrame because the script I am trying to achieve is, if I click the button GUI, it would teleport my character in the part. (I have already made the script.), if you can help me, please most likely reply how.

2 Likes

To get the parts CFrame you simply use part.CFrame and set the characters HumanoidRootPart to the partsCFrame. Just as a note this has to be done server side

CFrame is not shown in the properties menu, but you can just do print(part.CFrame)

also cframe is not position. it contains the position but it is not position, it stands for coordinate frame and all it is is a way to store position and rotation

On a side note, all CFrame printed are big outputs of numbers that not only having position but also including rotation and the rotational matrix. Consider Part.Position, a Vector3 and then use CFrame.new(Part.Position). Be aware that the rotation is then set to 0.

If you plan to force the player in the right rotation, Character:SetPrimaryPartCFrame(Part.CFrame) should do the trick.

The only part you should try moving only is the HumanoidRootPart, since the character is entirely made out of attachments and is connected between parts.

2 Likes

On another side note, you can view all of the CFrame operations on the wiki

1 Like

Thanks, I’ll look onto some! Have a great day.