Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My script for marketplacebuying is not working does not give coins?

Asked by 8 years ago

Well I have the prompt purchase to give coins in game it doesnt work and theres no output...

BuyCash.MouseButton1Click:connect(function()
    local ID = 43126171
    local Market = game:GetService("MarketplaceService")
    local Buy = Market:PromptProductPurchase(Player, ID)
    Market.PromptPurchaseFinished:connect(function(Player, ID, Purchased)
        if Purchased then
            Coins.Value = Coins.Value + 700
            Server:FireServer(Coins.Value)
        end
    end)
end)
0
Where are you defining the player? User#5423 17 — 8y
0
Oh at the top i just took the portion out CommissionerJose 10 — 8y

Answer this question