As other answers already say, hanging out sounds less childish than play.
There's a slight difference in meaning, though, too.
The word play often connotes playing around with some toy or game: playing marbles, playing with dolls, playing with Legos, etc.
The term hang out refers to spending time together, but not necessarily doing anything in particular: hanging out at the mall, hanging out after school.
When kids are hanging out, they are probably just standing and talking – usually at some location away from home. If they are playing, then that gets associated with playing some game or sport.
Another key is that play sounds childish by itself. Much like in the movie, a teenager is susceptible to being mocked if he says, "Anybody wanna play?" However, that same teen could probably get away with something like, "Anybody wanna play basketball?"
As a footnote, "Anybody wanna play?" could work, say, on a basketball court, especially if the kid is holding or dribbling a basketball – or (as another example) if someone is carrying the board game Settlers of Catan into a living room with a few friends. It's not just the word play being used by itself in a sentence, it's the word play being used without any additional context, as happened in the movie scene. – J.R. – 2015-02-11T10:51:52.847