I've been trying to prompt an in-game purchase (a gamepass) when a part is touched, but I've had no luck. Is anyone able to help?
script.Parent.Touched:Connect(function(hit)
game.MarketplaceService:PromptGamePassPurchase(hit.Parent, 1011622680)
end)

1 comment
Mark this as correct.