Writing characters who are bigots or generally just bad people for whatever reason is pretty easy. It's pretty common. It all comes down to how you play it, like with most cases of role play. But role playing is something of a communal thing - and it's something people do for fun. And if your character isn't fun to interact with, then people aren't going to want to role play with you. It's pretty simple. Aside from the basic reaction of "I don't like racists so I don't want to interact with someone pretending to be a racist" - a lot of people are genuinely just bad at playing the compelling antagonist type. Stomping around shouting slurs and being a jerk to everyone is just going to make people not want to be around you, whether you're doing it "in character" or not. My character has nothing to gain from interacting with the lunatic standing on the street corner screaming about lalafell commit thirty percent of the crimes despite only making up fifteen percent of the population. You really need something more to your character than just "is a huge racist", basically. And at that point there's no reason to broadcast that you're playing a racist, because you don't need to bandy about what an edgy boy you are because you have an actual character, you read? If the only way you can think of to make a character interesting or unique is to make them a bigot - then you really need to expand yourself a bit more.