OBS is one program you can use to record gameplay on your PC but you can search online to find one which works for you. Also, a lot of graphics cards come with their own software which allows you to capture gameplay footage.
While we would not be able to give official support for how to use any of these programs, I'm sure you will be able to find additional guides and information online. In the meantime, if you have any further queries, please feel free to let us know.