CURRENT SCRIPT :
local sen2 = script.Parent.Sen2
local link = game:GetService("BadgeService")
--//
local shirt = "http://www.roblox.com/asset/?id=1645743"
local sc = script.Parent.Screen.SurfaceGui.Frame
function onTouched(hit)
local human = hit.Parent:FindFirstChild'Humanoid'
local pla = game.Players:GetPlayerFromCharacter(hit.Parent)
if human then
--//Shirt1
if hit.Parent:FindFirstChild'Shirt Graphic' then
if hit.Parent["Shirt Graphic"].Graphic == shirt then
sc.fa.Visible = false
sc.re.Text = "yes"
sc.re.Visible = true
elseif hit.Parent["Shirt Graphic"].Graphic ~= shirt then
sc.re.Visible = false
sc.fa.Text = "no"
sc.fa.Visible = true
end
end
end
end
script.Parent.Sen2.Touched:connect(onTouched)
As you can see here I only am checking 1 tshirt in the script at the moment, how can I change this so I can have possibly a folder of number values that consist of tshirt IDs, and it goes through checking them all seeing if the player is wearing at least one of the real tshirt it prints "yes"

2 comments
I would just use a table of shirt IDs and loop though them to see if a player has that item.
What type of loop?