I tried many different things and it just says "unable to cast int64" or something.
local Player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function(player)
script.Parent.Parent:FindFirstChild("Menu").Visible = not script.Parent.Parent:FindFirstChild("Menu").Visible
script.Parent.Parent:FindFirstChild("Shop").Visible = false
script.Parent.Parent:FindFirstChild("Information").Visible = false
-- This is what I need help with:
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player,9902217) then
script.Parent.Parent("Menu").TeamSelection.Visible = true
end
end)

2 comments
Mwah
^^^