function Handler.add(X,e)assert(typeof(e)~="\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,e)end function Handler.remove(X,e)for X in ipairs(ActiveHitboxes)do if ActiveHitboxes[X].object==e then ActiveHitboxes[X]:Destroy()setmetatable(ActiveHitboxes[X],nil)table.remove(ActiveHitboxes,X)end end end function Handler.check(X,e)for X,y in ipairs(ActiveHitboxes)do if y.object==e then return y end end end function OnTagRemoved(e)Handler:remove(e)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)

