Hello, I made an product script for an donate gui, I tried to buy my product but there was an error. What is the error in my script? I think i am true but,
local Player = game:GetService("Players").LocalPlayer
local MarketplaceService = game:GetService("MarketplaceService")
for _, thing in pairs(script.Parent:GetChildren()) do
if thing.ClassName == "TextButton" then
thing.MouseButton1Click:Connect(function()
MarketplaceService:PromptProductPurchase(Player, thing.ID.Value)
end)
end
end

2 comments
what was the in the output when you ran this?
nothing