LAWRENCE, Kan. (AP) – A 19-year-old Lawrence man will go to prison for raping a 13-year-old girl with whom he said he had consensual sex.

Mackenzie Lottinville was accused of having sex with the girl last October after sneaking her into the trailer where he lived with his parents. The Lawrence Journal-World reports he pleaded guilty in June to one count of raping a child younger than 14.

6NewsLawrence reports a Douglas County judge on Friday sentenced Lottinville to nearly 13 years in prison.

Lottinville told the judge that he had simply been hoping to make a new friend and “have some fun.” He also said the sex was consensual but that he understood he was guilty.

Lottinville worked as a night custodian in Lawrence schools from late January until his arrest in February.

Copyright 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed