|
| 01 May 2016 10:24 AM |
Hello all,
Im trying to make a button that you can buy something with robux, so its a button on the floor, you stand on it and it will show up the normal "do you want to buy this for x robux, balance after will be x robux" but im not sure how to do it.
Ive seen it done before but no idea how, can someone help please.
Thanks Rich
|
|
|
| Report Abuse |
|
|
Quortix
|
  |
| Joined: 23 Sep 2011 |
| Total Posts: 151 |
|
|
| 01 May 2016 10:30 AM |
You will need a Developer Product. This wiki article should help you: http://wiki.roblox.com/index.php?title=Developer_product |
|
|
| Report Abuse |
|
|
|
| 01 May 2016 10:34 AM |
but its to give a model so dev products wont work
Thanks
|
|
|
| Report Abuse |
|
|
|
| 01 May 2016 10:40 AM |
| Well you said you wanted to sell a thing for "robux" (do you mean robux , the currency we use on roblox , or you created a currency with the name "robux" on your game) that why you will need to sell gamepass. |
|
|
| Report Abuse |
|
|
|
| 01 May 2016 10:52 AM |
ok so heres the story:
i have a tycoon, i want to make a buy button like you would for normal droppers, but sell it for robux (website currency), so it needs to check when the player joins if they have the item (so yes gamepass) and then place the dropper on the map, and if they dont own it, have a button (like a normal button) that they step on and it will show up the do you want to buy this item, then after they have clicked yes will put the dropper down.
Does that make sense?
Thanks Rich
|
|
|
| Report Abuse |
|
|
|
| 01 May 2016 10:55 AM |
| http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PromptProductPurchase |
|
|
| Report Abuse |
|
|
|
| 01 May 2016 10:56 AM |
local AssetId = 1 -- Your ID here. script.Parent.Touched:connect(function( if game:GetService("MarketplaceService"):PlayerOwnsAsset(game:GetService("Players"):GetPlayerFromCharacter(Hit.Parent), AssetId) then -- Code here else game:GetService("MarketplaceService"):PromptPurchase(game:GetService("Players"):GetPlayerFromCharacter(Hit.Parent), AssetId) end end
-=[ RAP: 287,408 || DurstAuric; the narb of ROBLOX ]=- |
|
|
| Report Abuse |
|
|
|
| 01 May 2016 11:58 AM |
brilliant thanks, will give it a go.
Thank you
|
|
|
| Report Abuse |
|
|
|
| 01 May 2016 12:52 PM |
where it says "code here", what code goes in there, as its meant to place a dropper.
|
|
|
| Report Abuse |
|
|
|
| 01 May 2016 04:18 PM |
Yes. Sorry for the late response.
-=[ RAP: 286,881 || DurstAuric; the narb of ROBLOX ]=- |
|
|
| Report Abuse |
|
|