Making a GUI button type into chat

I’ve been aiming to make a GUI that when you press a certain button, the contents of that button are typed into chat for you. I’m not sure of how to achieve and I tried my best to find information on this on the forum but couldn’t find anything. If anybody knows how to achieve this could you please guide me through it to have a base understanding of how to create something like this.

1 Like

As I understand what you are trying you could work with this:

game:GetService('ReplicatedStorage').DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Message here",'All')

Thank you! That worked like I wanted it to.