Watch: Man saves toddler walking on roof in Rhode Island

A man became a hero after rescuing a toddler who was seen walking on a roof in Woonsocket, Rhode Island.

The terrifying incident was captured on video on Feb. 6. 

Cody Duplessis recorded the footage. The video showed a man wearing a red hoodie climbing onto a roof and pulling the child away from the edge.  

Duplessis was heard on camera stating his disbelief behind the camera.

RELATED: Manatee spotted in Rhode Island saltwater pond is first known New England sighting since 2016

According to WJAR, police said the toddler climbed out of a window that her mother left open because it was hot in the apartment. 

The State of Rhode Island Department of Children, Youth, and Families was notified, according to the outlet. 

Storyful contributed to this report. This story was reported from Los Angeles.