Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help Me Make A Shop GUI Button?

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.