Hide ChatHistory

i am trying to hide the chat history, but when i do what tutorials say it completely deletes my chat system, how would i fix this.

Is this what you are looking for:


i have tried this whole post, and it does not work. as well as other posts