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.
1 | for i,Pass in pairs (script.Parent.Contents.Top.Gamepasses:GetChildren()) do |
2 | if Pass:IsA( "TextButton" ) then |
3 | Pass.MouseButton 1 Click:Connect( function () |
4 | game.MarketplaceService:PromptGamePassPurchase(game.Players.LocalPlayer, Pass.PassId.Value) |
5 | end ) |
6 | end |
7 | end |
If there are no errors, there has to be something wrong with your if statement. Is the pass a TextButton
, or no?