I have looked at the roblox code wiki and it does not work and I tried google but I only detects me, does anyone have any scripting that can help?
COMMUNITY QUESTION
How do I detect if any player says something?
1 answer
Basically, to do this you have to check for the player chatted event which happens when a player chats which means you have to have a player variable for this to work.
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "Foo" then
--do something
end
end)
end)
1 comment
0
Oh thanks I’m gonna try that
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Please put some more effort into your question. What does not work? What code did you try?