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 » Scripting Helpers
Home Search
 

Re: HOW DO I MAKE MY DEV PRODUCTS BUYABLE?

Previous Thread :: Next Thread 
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 07:13 PM
THE TITLE.
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 07:14 PM
b1
Report Abuse
MECHANIZATION is not online. MECHANIZATION
Joined: 03 Jul 2013
Total Posts: 104
26 Mar 2014 07:18 PM
function(bunghole.buy = true) then
game.workspace.buy = true.devproducts = buyable
if bunghole = nil then (nobuy)
robux.money.price = 5000 and if buy.player.workspace
then money.half = math.random.givemoney vector3.new(MECHANIZATION) then
bunghole = false
end
end
end
end
end
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
26 Mar 2014 07:19 PM
@tangyboxhead
You ALMOST look invisible!
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 07:22 PM
Mech stop trolling
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 07:23 PM
le bump
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 08:05 PM
Just want a little help.
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
26 Mar 2014 08:10 PM
People help the guy damnit!
http://wiki.roblox.com/index.php?title=Developer_Products
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 08:34 PM
Err that doesnt help sorry.
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
26 Mar 2014 08:35 PM
You can't actually sell it off your game page. What you need to do is use Marketplace service to PromptProductPurchase the player in-game. I suggest an in-game gui store for this.
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 08:36 PM
Josh, I know that, could you psot a script please? or something similar because this is hard.
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
26 Mar 2014 08:38 PM
http://www.roblox.com/Automated-Dev-product-shop-GUI-item?id=150280310
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 08:43 PM
alright looking in the script. still a bit confusing, all I am interest in is a buying part not gui, I have that down

local function buyItem(button)
button.MouseButton1Click:connect(function()
local marketId = button["market"].Value
local pointsToAward = button["points"].Value
link:PromptProductPurchase(plr,marketId)
link.ProcessReceipt = function(receiptInfo)
if Enum.ProductPurchaseDecision.PurchaseGranted and receiptInfo.PlayerId == plr.userId then
stat.Value = stat.Value + pointsToAward
end
end
end)
end

this is all i need to make people buy right? if so then can you tell me what each little bit does?
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
26 Mar 2014 08:43 PM
I'll just make it how I would in a gui.

local TextButton=TextButton
local MarketplaceService=game:GetService("MarketplaceService")
local ProductId=1239182391829318293812938123
local Player=game.Players.LocalPlayer

TextButton.MouseButton1Down:connect(function()
MarketplaceService:PromptProductPurchase(Player,ProductId)
end)
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 08:45 PM
TextButton.MouseButton1Down:connect(function()
MarketplaceService:PromptProductPurchase(Player,ProductId)
end)


this is all I need to promt purchase? for real this is just it? oaky.
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 08:47 PM
well is it?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Mar 2014 08:53 PM
why don't you try and report back?
also define marketplaceservice(with game:GetService())
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 08:55 PM
Sorry, andlso i i made it but it calls market place a nil vlue (Before ou ask yes I can script, bu i never ,messed with dev prodcuts before.) and oyu said I need oit ot defined likt hat, but howwould I define it?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
26 Mar 2014 08:58 PM
game:GetService("MarketplaceService") not "MarketPlace"
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 08:58 PM
never mind fixed thanks!!!
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
26 Mar 2014 09:02 PM
Remember that you won't get any money from it without process receipt.
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 09:03 PM
Gah, and how would I do that ?

also the script works, but when I use it in online mode, there is no box to let me buy it.
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 09:06 PM
nvm i can buy now, but how to ge tmoney?
Report Abuse
tangyboxhead is not online. tangyboxhead
Joined: 23 Oct 2011
Total Posts: 9437
26 Mar 2014 09:11 PM
er bump. I read the wiki again still dont understand, is there anyway to like run codeafter its bought to give me money and give palyer what ever it gives
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
26 Mar 2014 09:12 PM
If you're buying it from yourself you wont get any money.
Just include in the script

MarketplaceService.ProcessReceipt=function(Info)
if Info.userId==Player.userId then

--Awarding stuff

return Enum.ProductPurchaseDecision.PurchaseGranted
end


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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