A man wanted for a robbery and slashing in the Bronx tried to escape police by climbing up a tree.

It happened just after 8 p.m. Monday at P.S. 119 at Pugsley and Watson avenues in Unionport.

The man first climbs a tall, metal fence before jumping on to the tree.

He then scales the tree, then jumps on the building's roof before making his way inside.

"Once I saw he entered the roof, and I was thinking there might be children in the school, because it's a weekday, there could be some night problems. If there were kids in there and that crazy guy just went in, who knows what could have happened. Maybe he could hurt on of the children," said one person at the scene.

Police eventually caught the alleged robber.