How would i make a mute command?

How would I make a mute command but the player can see all the chats so disabliing the chat gui wont do, I don’t know what script to fork