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

How do I make a purches when a button is pressed? [closed]

Asked by
god3030 -48
7 years ago

When a robox button is pressed a perches comes up Like buying vip or admin how do I do it? ty who ever helped

Closed as Not Constructive by Azarth, Asceylos, and adark

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Asceylos 562 Moderation Voter
7 years ago

You do that by using the function

game:GetService("MarketplaceService"):PromptPurchase(player,assetId)

and using the Clicked event of a clickdetector.

Ad