How to rotate Something with (in post)

How to rotate a Part with math.rad? It is supposed to change the orientation in angles but I don’t know how to use it, does anyone know?, If so give a example

1 Like

math.rad will simply convert an angle from degrees to radians. You can rotate parts using BasePart.Orientation to rotate using degrees or BasePart.CFrame to rotate using radians.

1 Like

Basically, If i say Part.CFrame = Part2.CFrame it will Set Part Position And orientation To Part2 Pos And Orientation too?, And if I only say Part.Position = Part2.Position it will only set Position?

1 Like

so basically, if you have a model (mostly in a viewport frame(for me)) the model wont have a correct rotation so you would use
Model:SetPrimaryPartCFrame = CFrame.new(0,0,0) * CFrame.Angles(0 , math.rad(180) , 0)) --rotates the model 180 degress math.rod(90) rotates it 90 degress but roblox will see the degrees as radians

1 Like

You should try it yourself. CFrame is a very useful thing but it’s quite complex to understand at first, as it is a matrix.

Yes, I don’t actually understand it much. Like I see CFrame * CFrame but it makes no sense for me, I can’t calculate what result it will give

CFrame * CFrame actually means addition (if same CFrame values, for instance position and position)