I want it so that when the GUI is clicked, if player does not have the specific card number then something happens. This is my code:
local cards = {101, 102, 103, 104} script.Parent.MouseButton1Down:Connect(function() if Player.Backpack:FindFirstChild(cards) == nil then print("Player does not own a card") end end)
Why doesn't this code work? When I spawned with the card number which is named '101', I click the GUI and it still prints that I don't own the card when I do.
Help please?