local event = require("event") event.listen("component_added", function(...) --[[ your custom service code as a background event responder ]]-- end)