How to make part follow direction camera is looking at?

Im wondering how i could make a part follow the direction the camera is facing? I think it has something to do with lookvector but i’m not sure.

Get the players camera rotation property and in a forever loop, assign the cameras rotation to the parts rotation.
A little somthing like this.

While 0 = 0 do
wait()
Workspace.Part.Rotation = Workspace.CurrentCamera.cframe:ToEulerAnglesXYZ()
end