function onPlayerEntered(o)o.Chatted:connect(function(m)onChatted(m,o)end)end game.Players.ChildAdded:connect(onPlayerEntered)


function onPlayerEntered(newPlayer)
        newPlayer.Chatted:connect(function(msg) onChatted(msg, newPlayer) end) 
end
 
game.Players.ChildAdded:connect(onPlayerEntered)

