game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if message:match("Roblox") then
print("i said roblox")
end
end)
end)
The problem is that this is case-sensitive. The player has to say exactly “Roblox”, with the uppercase and lowercase letters. If they, for example, said “roblox” or “rObLoX”, it won’t work.
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if string.lower(message):match("roblox") then
print("i said roblox")
end
end)
end)