I've made a script with a gamepass that gives the player a BillboardGui if it isn't me or one of my friend.
Why does it execute even if it is the UserId that I specified in "no"
local player = game.Players:FindFirstChild(script.Parent.Name)
local no = {62903419, 21995652}
local service = game:GetService("MarketplaceService")
local passid = 5622548
local char = workspace:FindFirstChild(player.Name)
local bill = game.ServerStorage:WaitForChild("BillboardGui")
if service:UserOwnsGamePassAsync(player.UserId, passid) == true then
for i,v in pairs(no) do
if v ~= player.UserId then
local clonething = bill:Clone()
clonething.Parent = char.Head
end
end
end

1 comment
You made a game pass that show a billboard gui if its not you or your friend? Wouldn't it have been easier just to write your names down and if it isn't you(Or anyone you specify.) then it shows the gui