-- This code should be in a 'Script' object within 'ServerScriptService'
local MarketplaceService = game:GetService("MarketplaceService")
local boughtLifeEvent = game.ReplicatedStorage.DiedEvents.boughtLifeEvent
local reviveEvent = game.ReplicatedStorage.DiedEvents.reviveEvent