Gui pops up when chat

Hi! I need help making a GUI that pops up when someone chats a message, I have tried many stuff but it’s not working, if someone could help me with that it’ll be great.

In a local script:

game.Players.LocalPlayer.Chatted:Connect(function(message)
if message == “MESSAGE” then
GUI.Visible = true
end

end)
1 Like