MPS = game:GetService("MarketplaceService")
id = 973839064
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
MPS:PromptProductPurchase(player, id)
end)
I need this for my tycoon. Thanks!
MPS = game:GetService("MarketplaceService")
id = 973839064
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
MPS:PromptProductPurchase(player, id)
end)
I need this for my tycoon. Thanks!
inside a script:
local MarketplaceService = game:GetService("MarketplaceService")
MarketplaceService.ProcessReceipt = function(receiptInfo)
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)
if player then
if receiptInfo.ProductId == 973839064 then
-- your code, for example:
--leaderstats.Money.Value = leaderstats.Money.Value + 10000000
return Enum.ProductPurchaseDecision.PurchaseGranted
end
else
return Enum.ProductPurchaseDecision.NotProcessedYet
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
7 comments
That's too complicated
??? is the only way
I write the code for you, you need only copy and paste this code.
I want to learn not copy and paste.
How i can help you if you have write only the localscript? You don't have the script part!
Dosen't matter any more, using what you have shown me, I made my own.
Thank you, but the next time please write "Not show the code", cya!