I use Nvidia screen recorder, but that only comes with laptops with a nvidia card i think. if you have it, use Alt + Z to open the game bar. You can also use Windows + G for the windows game bar, that is the same, but for every device that uses Windows 10.