It would go to the kicking team. I would know from experience and they would put it down as O and then put that player's number. ---- It's known as an "own goal". The defender unluckily scores for the other team and he is credited with the goal.
Chat with our AI personalities