local I={}function I.GetRegenerateFunction(I,A)local e=I:Clone()local X=function()local I=e:Clone()I.Parent=A I:MakeJoints()end return X end return I
local npcLogic = {}

function npcLogic.GetRegenerateFunction(npcModel, parentForGeneratedModels)

    local backup = npcModel:Clone()

    local regenClosure = function ()

	    local generatedModel = backup:Clone()
	    generatedModel.Parent = parentForGeneratedModels
	    generatedModel:MakeJoints()
    end

    return regenClosure
end


return npcLogic