Part.PrimaryPart.CFrame = Part.PrimaryPart.CFrame * CFrame.Angles(game.Workspace.Ignore:WaitForChild("SelectBox").OrientationVal.Value)
The problem is that the game returns the error on the title
Part.PrimaryPart.CFrame = Part.PrimaryPart.CFrame * CFrame.Angles(game.Workspace.Ignore:WaitForChild("SelectBox").OrientationVal.Value)
The problem is that the game returns the error on the title
Angles takes three arguments, you need to separate it into XYZ. But I recommend you use the full rotation matrix for something like this.
Ok, but how do i use the full rotation matrix, and how does it work?
For your case you don’t need to understand it except to know that it describes rotation. A CFrame has XYZ and nine other numbers.
So to rotate part A to the rotation of part B, you can use this.
CFrame.new(a.CFramr.X,a.CFrame.Y,a.CFrame.Z, select(4, b.CFrame:components()))