I have a shop with 3 options for gamepasses, they have IntValues inside with the gamepass value. Why does this not prompt the gamepass? No errors in console.
for i,Pass in pairs(script.Parent.Contents.Top.Gamepasses:GetChildren()) do if Pass:IsA("TextButton") then Pass.MouseButton1Click:Connect(function() game.MarketplaceService:PromptGamePassPurchase(game.Players.LocalPlayer, Pass.PassId.Value) end) end end
If there are no errors, there has to be something wrong with your if statement. Is the pass a TextButton
, or no?