My goal is to convert the Y cframe orientation in world space to an attachment’s object space so that no matter where the attachment’s parent is looking, it will always point towards required direction.
local x,y,z = CFrame.Angles(0,YOrientation,0):ToObjectSpace(rope.Hook.Attachment.CFrame):ToOrientation()
rope.Hook.Attachment.CFrame = CFrame.Angles(0,y,0)
Where YOrientation is camera’s cframe Y orientation in radians converted via the same method
local x,y,z = game.Workspace.CurrentCamera.CFrame:ToOrientation()
The issue is that it doesn’t seem to point into the direction it’s supposed to.