RIDE ALONG” actor Kevin Hart is refusing to be taken for a ride by bad guys who made off with computers he bought for underprivileged kids in his hometown.

The pint-size comedian – who stars as a se­curity guard who rides along with a cop, his prospective brother-in-law (Ice Cube), in the surprise hit movie comedy – is playing detec­tive for real as he tries to help Philadelphia police track down the thieves.

When crooks made off with four of the 500 computers Hart had presented to schools and recreation centers in the City of Brotherly Love, he lashed out at the criminals and reas­sured the city’s youth he’d make up for the loss.

“This is a message to all the kids at the schools that were affected…ignorance like this only motivates me to do more!” the 5-foot-2 performer tweeted.

In November, the stand-up comic visited four Philadelphia city schools with Mayor Michael Nutter. Incredibly generous, he do­nated 500 computers to be distributed to the schools and the Department of Parks and Recreation.

Sadly, on Dec. 12, four of the computers – which retail for $1,100 each – were ripped off from the Cobbs Creek Recreation Center.

But the punks who stole them didn’t realize they’d have to deal with a madder-than-hell Kevin.

He’s determined to find the culprits and has volunteered to help local cops on the case,” revealed an insider. “He’s even enlisted the help of buddies to track down the perpetrators. He’s adamant that the bad guys be brought to justice.”

The 34-year-old divorced father of two is especially angry because the computers were intended to help the neediest children, and he’s promised them his continuing involvement.

Thanks to his hit film, Kevin has become a bona fide movie star and will be able to make good on his word.

“I love y’all and I will be back shortly,” he vowed to the kids. “But I’m coming bigger and better this time.”