I am trying to align a part with the direction the player is facing, but only on the Y rotation axis. I am using an AlignOrientation constraint to do this (one attachment mode), and it works when align type is set to primary axis parallel. This is the code I am using:
RS.Remotes.CameraPos.OnServerEvent:Connect(function(player, goalCFrame)
local UFOCFrame = script.Parent.Seat.CFrame
AlignOrientation.CFrame = goalCFrame
end)
but I would like to be able to have it on all Axis mode, and instead adjust the CFrame to make it only align on the Y axis, while keepint the other two at zero. I have been trying different versions for hours and nothing has worked, any help would be greatly appreciated!