Imagine I said "Activate teleport blah bloo" in the chat, how would I check if I say that then do somthing if it is true. IS THIS RIGHT? ///// here is an example of my code :
Admins = {"doctorbenny2011"}
function onChatted(msg)
if msg == ("Activate teleport blah bloo")then
--cool code here
end
end
game.Players.PlayerAdded:connect(function (guy)
for i,v in pairs(Admins) do
if string.lower(guy.Name) == string.lower(v) then
guy.Chatted:connect(onChatted)
end
end
end)

1 comment
By the way string.lower() is just another way of not capitalizing a name or something.