i want to use that for a shop in my game but i cant figur out how to do that. can someone help?
If you are using a click detector then
ClickDetector.MouseClick:Connect(function(player) game:GetService("MarketplaceService"):PromptGamePassPurchase(player, ID) end)