A roleplayer is anyone who chooses to take a false identity online, but more often than not you'll find the term "roleplayer" applied to D&D or writing roleplay. A roleplayer is anyone who takes a character, be it Canon (like Sans from Undertale) or an OC (Original creation), and uses that character in a story-esque setting.
Alex: Hey, you're a roleplayer now right?
Keith: Yup. I joined my first roleplay server on Discord not too long ago, I just gotta finish making my OC and I'll be set.