generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: robux script

Previous Thread :: Next Thread 
richarro123 is not online. richarro123
Joined: 07 Nov 2015
Total Posts: 293
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 is not online. 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
richarro123 is not online. richarro123
Joined: 07 Nov 2015
Total Posts: 293
01 May 2016 10:34 AM
but its to give a model so dev products wont work

Thanks


Report Abuse
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
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
richarro123 is not online. richarro123
Joined: 07 Nov 2015
Total Posts: 293
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
ColonySimulator is not online. ColonySimulator
Joined: 05 Jul 2015
Total Posts: 1721
01 May 2016 10:55 AM
http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PromptProductPurchase
Report Abuse
DurstAuric is not online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
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
richarro123 is not online. richarro123
Joined: 07 Nov 2015
Total Posts: 293
01 May 2016 11:58 AM
brilliant thanks, will give it a go.

Thank you


Report Abuse
richarro123 is not online. richarro123
Joined: 07 Nov 2015
Total Posts: 293
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
DurstAuric is not online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
01 May 2016 04:18 PM
Yes. Sorry for the late response.


-=[ RAP: 286,881 || DurstAuric; the narb of ROBLOX ]=-
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image