Best way to line up gun viewmodel and worldmodel?

I want to have my worldmodel for my gun line up exactly where the viewmodel is, But i’m not sure how to do this without Sending remoteevents over to update the guns position, I’d like to send remoteevents over to tell the server which way the player is looking up/down etc, but I’d need some sort of inverse kinematics to line up gun position from there only with the rotation of the camera, I’m not sure what to do.