It won't be a problem, its just that the camera won't know what aperture your lens is set to, so it won't be able to meter.
Go to menu, enable aperture ring. Now just go to M mode and set the aperture on the lens and the shutter/ISO on the camera. You can press green button and it will stop down the lens to your setting, meter, and then set the shutter speed. You can also use Av mode and it will meter automatically, but it will not stop down, it will shoot wide open. In Av mode you can probably also use Auto ISO, which can be helpful in dark situations where you shoot wide open anyway. There are a couple of threads with more detailed explanations if you are interested. Here is the one that I usually link to when this question pops up:
https://www.pentaxforums.com/forums/pentax-lens-articles/110657-how-use-meter...k-x-k-7-a.html
The manual lenses obviously don't have AF, but AF confirm can still work. You can use CiF (Catch in focus, focus trapping), live view with focus peaking, or even learn zone focusing. Manual lenses are a lot of fun and often have IQ that rivals modern lenses (in some cases even beats them)