You can record games through game launcher that's for stock. But for screen record I suggest DU recorder, it works great and gives you few options to edit video after the record. The phone don't have a built in feature so you need to download an app. Check my suggestion.
Hi, I'm using an app called "DU Recorder version 1.3.2. I could say it's cool since it will allows you to record videos on your screen easily. Why not give it a try? It is so easy to operate and you can immediately view your captured videos.
I use a mirroring app called ApowerMirror. This app relays real time screen of your android to a pc or laptop. Along with the software on laptop is some features like record and capture. Although this is a free to try app i think the money is worth it when you go premium.