The four were caught playing football in a car park when the ball rolled towards a road, police say.