-------------------------------------------------------------------

function regenerate()
	Click.MaxActivationDistance = 0
	enabled = false
	if DeleteEmptyModels then
		GUIText.Text = "DELETING UNUSED MODELS"
		for _,v in pairs(game.Workspace:GetDescendants())do
			if v.Name == ModelName and v:IsA("Model") then
				local Delete = CheckDeletes(v,true)
				if Delete == true then
					v:Destroy()
				end
			end
		end
	end
	wait()
	if model.PrimaryPart ~= nil and (model.PrimaryPart.CFrame.p-script.Parent.CFrame.p).Magnitude>50 then
		model = backup:clone()
		model.Parent = game.Workspace
		Cooldown()
	else
		model = backup:clone()
		model.Parent = game.Workspace
		Cooldown()
	end
end