Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Unknown error on chat script, can someone help me?

game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(m)
if m:sub(1,2) == "--" then
print("Player chatted: "..m))'
end
end)
end)

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!

4 comments

1

Why did someone thumbs down? This script was correct.

0

Probably jealous or something

0

I know, right?

0

I didn't notice the extra ) and the " ' " (A.K.A String)

This discussion is preserved as it was. New answers, comments, and votes are closed.