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

Help Me Make A Shop GUI Button?

Asked by 9 years ago

i am making a game i need it to give "Cash" in the leaderboard. but perches it with a Dev Product. and also give some player points and add player points to the game. witch i already got the add part. so help plz?

local productId = ID
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
    Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId)
end)

1 answer

Log in to vote
0
Answered by 3 years ago

i just wanted to be mean after u waiting for 6 years ahahahahhaha

Ad

Answer this question