Can you make a chat

Can i make a chat code.
I want to make a chat code, but i can’t find any code to make a chat. Can anybody help !