I want to make it so when a player clicks on a GUI and purchases the Product, it gives them a Tool in Lighting, but the PromptPurchase won't come up.
local buyButton = game.Players.LocalPlayer.PlayerGui.Tool.VIP
local productId = 19858627
buyButton.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
end)
buyButton.MouseButton1Click:connect(function()
player = game.Player.LocalPlayer
tool = game.Lighting:findFirstChild("VIP")
function buy()
local a = tool:clone()
a.Parent = player.Backpack
end
end)
