local script triggers purchase
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
script.Parent.MouseButton1Click:connect(function() --DONT CHANGE THIS
local player = Players.LocalPlayer
MarketplaceService:PromptProductPurchase(player, 1229353059)
end)
process purchase server script in workspace
local MPS = game:GetService("MarketplaceService")
local pass = 1229353059
MPS.PromptPurchaseFinished:Connect(function(player, purchaseID, purchaseSuccsesfull)
if purchaseSuccsesfull == true and purchaseID == pass then
script.bought:Play()
game.Workspace:SetAttribute("money", game.Workspace:GetAttribute("money") + 30)
print("BOUGHT 30 COINS")
end
end)
and nothing happens… nothing appears in the output window