Y Rotation Only

Hello! I’m making a multi-player game for my backrooms game. The multi-player and everything works and its in 1st person. When a player joins the room, the rotation doesn’t work on the players. So what I’m really trying to ask is how to only get the y-axis rotation from the First person camera?
Thank you!