function regenerate()Click.MaxActivationDistance=0 enabled=false if DeleteEmptyModels then GUIText.Text="\068\069\076\069\084\073\078\071 \085\078\085\083\069\068 \077\079\068\069\076\083"for N,U in pairs(game.Workspace:GetDescendants())do if U.Name==ModelName and U:IsA("\077\111\100\101\108")then local N=CheckDeletes(U,true)if N==true then U: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

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