Overheating problem 2002 sportsman 700

Hey yall. Recently purchased a 02 sportsman 700. I rode it around for about an hour testing it out. Went to go on a long ride and on my way there the over heating light came on. Turned around headed back home. When i got there it started hissing and anti freeze started coming out of the overflow. Looked like it was boiling inside of it. If anyone could help me with whats wrong that would be awesome. Thanks.