This function is having some kind of problem
Vip = {43279601,43279447,53215570,7224824}
function DestroyGuiIfPlayerHasAnyVip()
for i = 1,#Vip do
if game:GetService("BadgeService"):UserHasBadge(game.Players.LocalPlayer.userId,Vip[i]) then
script.Parent:Destroy()
end
end
end
There is no output. The function is correct. The problem is that it does not destroy the gui if a player owns one of the vip t-shirts. |