I have created a part to use in my game, and inserted a Script in said Part along with a ClickDetector. I used this code so when I click the part It prompts me to purchase my Lemonade Item:
local MarketplaceService = game:GetService("MarketplaceService")
local Part = script.Parent
local ClickDetector = Part:WaitForChild("ClickDetector")
local ProductId = 104605498
ClickDetector.MouseClick:Connect(function(Player)
MarketplaceService:PromptProductPurchase(Player, ProductId)
end)
Now I just need to know how to actually give the player the lemonade after they complete the Transaction. Thanks for the help :D

1 comment
Try checking this out: https://wiki.roblox.com/index.php?title=Developer_Products_–_In-Game_Purchases