Scuttle flies are often associated with dead or dying organisms. This Megascelia aurea was one of many individuals that were feeding and laying eggs on a moribund Heterogomphus sp. rhinoceros beetle. See a shot from the same scene on p.411 of Flies: The Natural History and Diversity of Diptera, Marshall (2012).
iNaturalist observation