function onChatted(msg, reciepient, speaker)
local source = string.lower(speaker.Name)
local msg = string.lower(msg)
if (msg == "blah") then
--Do stuff
end
end
function onPlayerEntered(p)
p.Chatted:connect( --I don't know the full connection lines
end
game.Players.ChildAdded:connect(onPlayerEntered) |