My kick script checks if the player has the shirt or not, and if they don't they get kicked, if they do they stay. But the problem is that it only checks the first shirt. It doesn't check for the other shirts.
local ShirtId1 = 2620211336
local ShirtId2 = 2620213086
local ShirtId3 = 2620212616
local Shirt_Name = "Group shirt"
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local PlayerOwnsShirt = MarketplaceService.PlayerOwnsAsset
Players.PlayerAdded:Connect(function (player)
local Success, doesPlayerOwnShirt = pcall(PlayerOwnsShirt, MarketplaceService, player, ShirtId1 or ShirtId2 or ShirtId3)
if doesPlayerOwnShirt then
print(player.Name.. " owns " .. Shirt_Name)
else
player:Kick("Sorry")
print(player.Name .. " doesn't own " .. Shirt_Name)
end
end)

2 comments
line 14, check is underlined in blue. It's not defined. Where should I define it?
My bad, throw it after line 12, local check = nil or just local check