Hello, I’m trying to make a button make you say a phrase in the chat when it is hit. This is for a cafe, so the message I would put would be like welcome.
I have been looking around the dev form and everything I found did not work with what I needed like legacy chat instead of TextChatService.
local textChatService = game:GetService("TextChatService")
local textChannel = textChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
local message = "Message Here"
textChannel:SendAsync(message)
If you are still using Legacy ChatService, you can use SayMessage.