local o=require(script.MainHandler)local G=require(script.HitboxObject)function RaycastHitbox.Initialize(W,m,O)assert(m,"\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 J=o:check(m)if not J then J=G:new()J:config(m,O)J:seekAttachments(RaycastHitbox.AttachmentName,RaycastHitbox.WarningMessage)J.debugMode=RaycastHitbox.DebugMode o:add(J)end return J end function RaycastHitbox.Deinitialize(m,G)o:remove(G)end function RaycastHitbox.GetHitbox(m,G)return o:check(G,RaycastHitbox.WarningMessage)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)
	Handler:remove(object)
end

function RaycastHitbox:GetHitbox(object)
	return Handler:check(object, RaycastHitbox.WarningMessage)
end

return RaycastHitbox
