This activated even if I were to say for example "g"
function Chatted(msg) if msg:sub(1,3) == "God" and player.Name == "Polendris" or player.Name == "Player" then --private code here end end player.Chatted:connect(Chatted)
The if statement is a and b or c
and because of the boolean order of operations, this is interpreted as (a and b) or c
and since c is true, the statement is true regardless of a and b. Use parentheses to solve this.