--// Modules

local Zone = require(script['Zone'])

local module = {}

module.SpawnHB = function(data)
	local part = data.part
	local cf = data.cf or part.CFrame 
	local Shape = data.Shape or 'Square'
	local size = data.size or Vector3.new(5,5,5)
	local tim = data.tim
	
	local HB = script.Storage[Shape]:Clone()
	HB.Parent = workspace.World.Hitbox
	HB.CFrame = cf 
	HB.Size = size
	
	if tim then
		game.Debris:AddItem(HB, tim)
	end
	
	return HB
end

