local Q={}function Q.start()for Q,z in pairs(CollectionService:GetTagged(PICKUP_SPAWNER_TAG))do pickupAdded(z)end maid.pickupAddedConnection=(CollectionService:GetInstanceAddedSignal(PICKUP_SPAWNER_TAG)):Connect(pickupAdded)maid.pickupRemovedConnection=(CollectionService:GetInstanceRemovedSignal(PICKUP_SPAWNER_TAG)):Connect(pickupRemoved)maid.actionActivatedConnection=ActionPrompts.actionActivated:connect(actionActivated)end function Q.stop()for Q,z in pairs(CollectionService:GetTagged(PICKUP_SPAWNER_TAG))do pickupRemoved(z)end maid:clean()end return Q
--[[
	Pickup visualizer implementation
]]

local pickupVisualizer = {}

function pickupVisualizer.start()
	for _, instance in pairs(CollectionService:GetTagged(PICKUP_SPAWNER_TAG)) do
		pickupAdded(instance)
	end

	maid.pickupAddedConnection = CollectionService:GetInstanceAddedSignal(PICKUP_SPAWNER_TAG):Connect(pickupAdded)
	maid.pickupRemovedConnection = CollectionService:GetInstanceRemovedSignal(PICKUP_SPAWNER_TAG):Connect(pickupRemoved)

	maid.actionActivatedConnection = ActionPrompts.actionActivated:connect(actionActivated)
end

function pickupVisualizer.stop()
	for _, instance in pairs(CollectionService:GetTagged(PICKUP_SPAWNER_TAG)) do
		pickupRemoved(instance)
	end

	maid:clean()
end

return pickupVisualizer
