Junk
"Junk Synchron" + 1 or more non-Tuner monsters
When this card is Synchro Summoned: You can target cards on the field, up to the number of non-Tuner monsters used for the Synchro Summon of this card; destroy those targets.
local CARD_ID_0 = 63977008 --Junk Synchron
local CARD_ID_1 = 20932152 --Quickdraw Synchron

local CARD_ID_0 = 63977008 --Junk Synchron
local CARD_ID_1 = 20932152 --Quickdraw Synchron
local s, id, o = GetID()
function s.initial_effect(c)
	aux.AddMaterialCodeList(c, CARD_ID_0)
	--synchro summon
	aux.AddSynchroProcedure(c, s.tfilter, aux.NonTuner(nil), 1)
	c:EnableReviveLimit()
	--atkup
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_DESTROY)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
	e1:SetCondition(s.con)
	e1:SetTarget(s.tg)
	e1:SetOperation(s.op)
	c:RegisterEffect(e1)
end
s.material_setcode = 0x1017
function s.tfilter(c)
	return c:IsCode(CARD_ID_0) or c:IsHasEffect(CARD_ID_1)
end
function s.con(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function s.tg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsOnField()
	end
	local mc = e:GetHandler():GetMaterialCount()
	if chk == 0 then
		return mc > 1 and Duel.IsExistingTarget(aux.TRUE, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g = Duel.SelectTarget(tp, aux.TRUE, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, mc - 1, nil)
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, g:GetCount(), 0, 0)
end
function s.op(e, tp, eg, ep, ev, re, r, rp)
	local g = Duel.GetChainInfo(0, CHAININFO_TARGET_CARDS)
	local sg = g:Filter(Card.IsRelateToEffect, nil, e)
	Duel.Destroy(sg, REASON_EFFECT)
end


Junk
"Junk Synchron" + 1 or more non-Tuner monsters
When this card is Synchro Summoned: You can target cards on the field, up to the number of non-Tuner monsters used for the Synchro Summon of this card; destroy those targets.
-- Junk
local CARD_ID_0 = 63977008 --Junk Synchron
local CARD_ID_1 = 20932152 --Quickdraw Synchron
local s, id, o = GetID()
function s.initial_effect(c)
	aux.AddMaterialCodeList(c, CARD_ID_0)
	--synchro summon
	aux.AddSynchroProcedure(c, s.tfilter, aux.NonTuner(nil), 1)
	c:EnableReviveLimit()
	--atkup
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_DESTROY)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_O)
	e1:SetCode(EVENT_SPSUMMON_SUCCESS)
	e1:SetCondition(s.con)
	e1:SetTarget(s.tg)
	e1:SetOperation(s.op)
	c:RegisterEffect(e1)
end
s.material_setcode = 0x1017
function s.tfilter(c)
	return c:IsCode(CARD_ID_0) or c:IsHasEffect(CARD_ID_1)
end
function s.con(e, tp, eg, ep, ev, re, r, rp)
	return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function s.tg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsOnField()
	end
	local mc = e:GetHandler():GetMaterialCount()
	if chk == 0 then
		return mc > 1 and Duel.IsExistingTarget(aux.TRUE, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
	local g = Duel.SelectTarget(tp, aux.TRUE, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, mc - 1, nil)
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, g:GetCount(), 0, 0)
end
function s.op(e, tp, eg, ep, ev, re, r, rp)
	local g = Duel.GetChainInfo(0, CHAININFO_TARGET_CARDS)
	local sg = g:Filter(Card.IsRelateToEffect, nil, e)
	Duel.Destroy(sg, REASON_EFFECT)
end

