(Make sure your Roblox game is published)
Script:
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local productID = 0000000 -- Change this to your developer product ID
local function promptPurchase()
local player = Players.LocalPlayer
MarketplaceService:PromptProductPurchase(player, productID)
end
script.Parent.MouseButton1Click:Connect(promptPurchase)
Music-
Meet & Fun! - Ofshane:
• Video
Social media -
Twitter - / slydonut6414
Instagram - / slydonut6414
Subscribe for a lifetime of good luck - / @slydonut6414
#robloxstudio #donationgui #donatebutton #robloxscripting