I don't know what is wrong with this line of code. I have a screengui, then a frame, then a textbutton, then a local script.
local id = not going to tell
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):ProptProductPurchase(game.Players.LocalPlayer,id)
end)

4 comments
Before I answer, I'd like to confirm that the issue is not caused by the typo on line 4?
oh
also why would u say the id is "not going to tell" ..... you do realize that even if you put it other developers can use it in their games and you would get 50% of the robux
don't want to, and that is dirty