Hello. I have a game in development. I have nearly finished the rough layout of the GUIS and I have started scripting them. One of them is a Robux section.
When I run the game and try buy any item this shows up The wierd thing is that the item is on sale VIP - Roblox Can anyone help me with what is wrong. This the script I have:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
print("Promting Purchase!")
wait(0)
game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, 14713223)
print("Purchase Prompted!")
end)
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer, 14713223)
end
local MarketplaceService = game:GetService("MarketplaceService")
local productID = 0000000 -- Change this to your developer product ID
local player = game.Players.LocalPlayer
MarketplaceService:PromptProductPurchase(player, productID)