I have a local script, in startergui, that creates a surfacegui on a block. When the surfacrgui is clicked(it has a textbutton), it prompts you with a purchase. It works fine, but when I reset, it doesn't work anymore. Here's the code:
local p3 = game.Players.LocalPlayer
local pi3 = 43875114
local SG3 = Instance.new("SurfaceGui")
SG3.Parent = game.Workspace.don8
local TB3 = Instance.new("TextButton")
TB3.Parent = SG3
TB3.Size = UDim2.new(1,0,1,0)
TB3.Text = "Donation!(1000 Robux)"
TB3.BackgroundColor3 = BrickColor.White().Color
TB3.TextWrapped = true
TB3.FontSize = "Size60"
TB3.MouseButton1Down:connect(function()
Game:GetService("MarketplaceService"):PromptProductPurchase(p3, pi3)
end)
Any ideas? All help is appreciated!

2 comments
yeah this isnt an answer i just wanted to say your donation price is more outrageous than a gold plated dominus. thats all.
It's just there for me to learn ._. Some guy actually bought the 100 robux one though! :D