local function V(V)local n=V.ProductId local v=Players:GetPlayerByUserId(V.PlayerId)if v==nil then return Enum.ProductPurchaseDecision.NotProcessedYet end local S=PlayerData.Profiles[v]if not S then return end local i,P=EggConfig.GetEggFromProduct(n)local C=HatchBind:Invoke(v,i,P)task.wait(1.5)Remotes.Eggs.EggProductPurchased:FireClient(v,i,C)end




local function ProcessReceipt(receipt_info)
	local ProductId = receipt_info.ProductId

	local player = Players:GetPlayerByUserId(receipt_info.PlayerId)

	if player == nil then
		return Enum.ProductPurchaseDecision.NotProcessedYet
	end

	local profile = PlayerData.Profiles[player]
	if not profile then return end

	local ProductToBuy, amount = EggConfig.GetEggFromProduct(ProductId)
	
	local pets = HatchBind:Invoke(player, ProductToBuy, amount)
	
	task.wait(1.5)
	
	Remotes.Eggs.EggProductPurchased:FireClient(player, ProductToBuy, pets)
	
end
