function Handler.add(R,Q)assert(typeof(Q)~="\073\110\115\116\097\110\099\101","\077\097\107\101 \115\117\114\101 \121\111\117 \097\114\101 \105\110\105\116\105\097\108\105\122\105\110\103 \102\114\111\109 \116\104\101 \082\097\121\099\097\115\116 \109\111\100\117\108\101\044 \110\111\116 \102\114\111\109 \116\104\105\115 \104\097\110\100\108\101\114\046")table.insert(ActiveHitboxes,Q)end function Handler.remove(R,Q)for R in ipairs(ActiveHitboxes)do if ActiveHitboxes[R].object==Q then ActiveHitboxes[R]:Destroy()setmetatable(ActiveHitboxes[R],nil)table.remove(ActiveHitboxes,R)end end end function Handler.check(R,Q)for R,Y in ipairs(ActiveHitboxes)do if Y.object==Q then return Y end end end function OnTagRemoved(Q)Handler:remove(Q)end;(CollectionService:GetInstanceRemovedSignal("\082\097\121\099\097\115\116\077\111\100\117\108\101\077\097\110\097\103\101\100")):Connect(OnTagRemoved)

function Handler:add(hitboxObject)
	assert(typeof(hitboxObject) ~= "Instance", "Make sure you are initializing from the Raycast module, not from this handler.")
	table.insert(ActiveHitboxes, hitboxObject)
end

function Handler:remove(object)
	for i in ipairs(ActiveHitboxes) do
		if ActiveHitboxes[i].object == object then
			ActiveHitboxes[i]:Destroy()
			setmetatable(ActiveHitboxes[i], nil)
			table.remove(ActiveHitboxes, i)
		end
	end
end

function Handler:check(object)
	for _, hitbox in ipairs(ActiveHitboxes) do
		if hitbox.object == object then
			return hitbox
		end
	end
end

function OnTagRemoved(object)
	Handler:remove(object)
end

CollectionService:GetInstanceRemovedSignal("RaycastModuleManaged"):Connect(OnTagRemoved)
