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

function onPlayerEntered(newPlayer) 
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) 
end 

game.Players.ChildAdded:connect(onPlayerEntered)
