If in the studio command bar I type:

workspace.Part.Rotation = Vector3.new(0, 180, 0);

In the properties window I see

x: 0 y: -180 z: 0

But the issue is, when I do this:

print(workspace.Part.Rotation.Y);

It returns

0

Or if I try

workspace.Part.Rotation = Vector3.new(0, 95, 0);
print(workspace.Part.Rotation.Y);

It returns 85?

How do I fix this? How do I actually get a parts true rotation? (The one shown in the studio properties window)

3 comments

0

I'm not completely sure... but the value is positive 180, while in properties it says negative 180?

0

That isn't the issue, the issue is that I cannot access it's actual rotation

0

try getting the CFrame:PointToObjectSpace() it returnes the vector3's part position Or you could also use CFrame:VectorToObjectSpace() to get the orientation too