local A=require(script.MainHandler)local X=require(script.HitboxObject)function RaycastHitbox.Initialize(l,U,r)assert(U,"\089\111\117 \109\117\115\116 \112\114\111\118\105\100\101 \097\110 \111\098\106\101\099\116 \105\110\115\116\097\110\099\101\046")local b=A:check(U)if not b then b=X:new()b:config(U,r)b:seekAttachments(RaycastHitbox.AttachmentName,RaycastHitbox.WarningMessage)b.debugMode=RaycastHitbox.DebugMode A:add(b)end return b end function RaycastHitbox.Deinitialize(U,X)A:remove(X)end function RaycastHitbox.GetHitbox(U,X)return A:check(X)end return RaycastHitbox


local Handler = require(script.MainHandler)
local HitboxClass = require(script.HitboxObject)

function RaycastHitbox:Initialize(object, ignoreList)
	assert(object, "You must provide an object instance.")
	
	local newHitbox = Handler:check(object)
	if not newHitbox then
		newHitbox = HitboxClass:new()
		newHitbox:config(object, ignoreList)
		newHitbox:seekAttachments(RaycastHitbox.AttachmentName, RaycastHitbox.WarningMessage)
		newHitbox.debugMode = RaycastHitbox.DebugMode
		Handler:add(newHitbox)
	end
	return newHitbox
end

function RaycastHitbox:Deinitialize(object) --- Deprecated
	Handler:remove(object)
end

function RaycastHitbox:GetHitbox(object)
   return Handler:check(object)
end

return RaycastHitbox
