Go to the BP_ChatMessage widget and create a new variable called ProfanityWords and set its to a String and set it to an Array.
Next create a new function called ProfanityFilter and add a new input called Message and set it to String and tick on Instance Editable, then add a new output call it FilteredMessage and set it to String. Now create a new local variable called MessageL and set it to String.
Next copy the image below.
Next go to the E_SocialSettings and add a new entry called Message Profanity Filter and save.
Now drag the BP_SaveHelper into a level and with it selected click the Delete CGG Save button in the details panel, you can now remove the BP_SaveHelper from the level.
Now go to the and in the class defaults search for the StartingSocialSettings and copy the video below.
Now play in editor and click the settings button on the chat window to see if the Message Profanity Filter option is there, if its not then try draging the BP_SaveHelper into a level again and with it selected click the Delete CGG Save button in the details panel, you can now remove the BP_SaveHelper from the level. You can also try going to the BP_SocialSettingsWindow and compiling it then do the same in the BP_SocialSettingsPanel as well.
Now go to the BP_ChatMessage then to the Event Graph view then to the InitializeChatMessage function and create a new variable called NewMessageL and set its type to String. Then copy the image below.
Next replace the Message variables with the NewMessageVariables shown in the images below.
Now in the class defaults of the BP_ChatMessage search for Profanity Words, here you can add your words that will be filtered out by pressing the + button. Keep in mind that it will filter out these letters even if they are a part of another word. The below image are the default words you can add as many more as you like.