game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
if m:sub(1,2) == "--" then
print("Player chatted: "..m))'
end
end)
end)
✓ ANSWER ACCEPTED
Unknown error on chat script, can someone help me?
1 answer
✓ Accepted answer
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
if m:sub(1,2) == "--" then
print("Player chatted: "..m)
end
end)
end)
There you go!
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Why did someone thumbs down? This script was correct.
Probably jealous or something
I know, right?
I didn't notice the extra ) and the " ' " (A.K.A String)